|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.KeyValue
This class builds and stores a KeyValue element in
KeyInfo. It contains the key that validates signatures and
encryption.
| Constructor Summary | |
KeyValue(SWSJContext context)
Creates an empty |
|
KeyValue(SWSJContext context,
java.security.PublicKey publicKey)
Creates a |
|
| Method Summary | |
getContext()
Gets the SWSJContext. |
|
java.security.PublicKey |
getKey()
Returns the public key. |
void |
setKey(java.security.PublicKey publicKey)
Sets the public-key values of this |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KeyValue(SWSJContext context)
throws InvalidParameterException
KeyValue object initialized only with
context.
context - An object that collects a number of common parameters and
state variables; for example, JCE provider.
InvalidParameterException - If context is invalid.
public KeyValue(SWSJContext context,
java.security.PublicKey publicKey)
throws InvalidParameterException
KeyValue object, sets the context, and
initializes the key to publicKey.
context - An object that collects a number of common parameters and
state variables; for example, JCE provider.publicKey - A PublicKey object that contains the key
to use.
InvalidParameterException - If any parameters are invalid.| Method Detail |
public SWSJContext getContext()
getContext in interface KeyInfo
public void setKey(java.security.PublicKey publicKey)
throws InvalidParameterException
KeyValue object.
publicKey - The public key used to perform the security operation
as a PublicKey object.
InvalidParameterException - If publicKey is invalid.public java.security.PublicKey getKey()
PublicKey.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||