|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.keyczar.TimeoutVerifier
public class TimeoutVerifier
TimeoutVerifiers verify timeout signatures generated by
TimeoutSigner
objects
Constructor Summary | |
---|---|
TimeoutVerifier(KeyczarReader reader)
Initialize a new TimeoutVerifier with a KeyczarReader. |
|
TimeoutVerifier(java.lang.String fileLocation)
Initialize a new TimeoutVerifier with a key set location. |
|
TimeoutVerifier(Verifier verifier)
Initialize a new TimeoutVerifier with a Verifier object. |
Method Summary | |
---|---|
boolean |
verify(byte[] data,
byte[] signature)
Verifies a timeout signature on the given byte array of data |
boolean |
verify(java.nio.ByteBuffer data,
java.nio.ByteBuffer timeoutSignature)
Verify the timeout signature on the given data |
boolean |
verify(java.lang.String data,
java.lang.String signature)
Verifies the timeout signature on the given String |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeoutVerifier(KeyczarReader reader) throws KeyczarException
KeyPurpose.VERIFY
.
reader
- A reader to read keys from
KeyczarException
- In the event of an IO error reading keys or if the
key set does not have the appropriate purpose.public TimeoutVerifier(java.lang.String fileLocation) throws KeyczarException
KeyPurpose.VERIFY
.
fileLocation
- Directory containing a key set
KeyczarException
- In the event of an IO error reading keys or if the
key set does not have the appropriate purpose.public TimeoutVerifier(Verifier verifier)
verifier
- Signer to be used for timeout signaturesMethod Detail |
---|
public boolean verify(java.lang.String data, java.lang.String signature) throws KeyczarException
data
- The data to verify the signature onsignature
- The signature to verify
KeyczarException
- If the signature is malformed or a JCE error
occurs.public boolean verify(byte[] data, byte[] signature) throws KeyczarException
data
- The data to verify the signature onsignature
- The timeput signture to verify
KeyczarException
- If the signature is malformed or a JCE error
occurs.public boolean verify(java.nio.ByteBuffer data, java.nio.ByteBuffer timeoutSignature) throws KeyczarException
data
- timeoutSignature
-
KeyczarException
- If the signature is malformed or a JCE error
occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |