|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.keyczar.TimeoutVerifier
org.keyczar.TimeoutSigner
public class TimeoutSigner
Timeout signers can generate signatures that are valid until a specified
expiration time. Timeout signatures are verified by
TimeoutVerifier
objects.
Constructor Summary | |
---|---|
TimeoutSigner(KeyczarReader reader)
Initialize a new TimeoutSigner with a KeyczarReader. |
|
TimeoutSigner(Signer signer)
Initialize a new TimeoutSigner with a Signer object. |
|
TimeoutSigner(java.lang.String fileLocation)
Initialize a new TimeoutSigner with a key set location. |
Method Summary | |
---|---|
byte[] |
timeoutSign(byte[] input,
long expirationTime)
Sign the given input and return a signature that is valid until the expiration time given as the number of milliseconds since "the epoch" of 1/1/1970 00:00:00 GMT |
void |
timeoutSign(java.nio.ByteBuffer input,
long expirationTime,
java.nio.ByteBuffer output)
Signs the input and produces a signature that is valid until the expiration time given as the number of milliseconds since "the epoch" of 1/1/1970 00:00:00 GMT |
java.lang.String |
timeoutSign(java.lang.String input,
long expirationTime)
Sign the given input and return a signature that is valid until the expiration time given as the number of milliseconds since "the epoch" of 1/1/1970 00:00:00 GMT |
Methods inherited from class org.keyczar.TimeoutVerifier |
---|
verify, verify, verify |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeoutSigner(KeyczarReader reader) throws KeyczarException
KeyPurpose.SIGN_AND_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 TimeoutSigner(java.lang.String fileLocation) throws KeyczarException
KeyPurpose.SIGN_AND_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 TimeoutSigner(Signer signer)
signer
- Signer to be used for timeout signaturesMethod Detail |
---|
public java.lang.String timeoutSign(java.lang.String input, long expirationTime) throws KeyczarException
input
- The input to be signedexpirationTime
- The expiration time in milliseconds since 1/1/1970
00:00:00 GMT
KeyczarException
public byte[] timeoutSign(byte[] input, long expirationTime) throws KeyczarException
input
- The input to be signedexpirationTime
- The expiration time in milliseconds since 1/1/1970
00:00:00 GMT
KeyczarException
public void timeoutSign(java.nio.ByteBuffer input, long expirationTime, java.nio.ByteBuffer output) throws KeyczarException
input
- The input to be signedexpirationTime
- The expiration time in milliseconds since 1/1/1970
00:00:00 GMToutput
- The destination of this signature
KeyczarException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |