|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.profiles.wss.KeyIdentifier
An implementation of the <KeyIdentifier> element. A key identifier is a value that uniquely identifies a key.
| Field Summary | |
static java.lang.String |
BASE64_ENCODING_TYPE
|
static java.lang.String |
X509SKI_TYPE_VALUE
A |
| Constructor Summary | |
KeyIdentifier(SWSJContext context)
Creates an empty |
|
| Method Summary | |
getContext()
Gets the SWSJContext. |
|
java.lang.String |
getEncodingType()
Returns the encoding type of the key identifier. |
java.lang.String |
getId()
Gets the |
byte[] |
getValue()
Gets the value of this KeyIdentifier. |
java.lang.String |
getValueType()
Gets the type of KeyIdentifier being used. |
void |
setEncodingType(java.lang.String encodingType)
Sets the type of encoding used to encode the KeyIdentifier. |
void |
setId(java.lang.String id)
Sets the |
void |
setValue(byte[] value)
Sets the value of this KeyIdentifier. |
void |
setValueType(java.lang.String valueType)
Sets the type of KeyIdentifier being used. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String X509SKI_TYPE_VALUE
String that indicates a ValueType attribute
value is an X.509 subject key identifier.
public static final java.lang.String BASE64_ENCODING_TYPE
String that indicates an EncodingType attribute is
Base64.
| Constructor Detail |
public KeyIdentifier(SWSJContext context)
throws InvalidParameterException
KeyIdentifier 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.| Method Detail |
public SWSJContext getContext()
public void setId(java.lang.String id)
throws InvalidParameterException
Id attribute that provides a standard method to
assign a string ID to an element within the document context.
Note: It is the user's responsibility not to
duplicate ID values in XML and WSS documents to which
security will be added.
id - The ID.
InvalidParameterException - If id is invalid.public java.lang.String getId()
Id attribute that provides a standard method to
assign a string ID to an element within the document context.
Id attribute.
public void setValueType(java.lang.String valueType)
throws InvalidParameterException
valueType - Type of value referred to by this key identifier. The
only supported values is
KeyIdentifier.X509SKI_TYPE_VALUE.
InvalidParameterException - If valueType is invalid.public java.lang.String getValueType()
public void setEncodingType(java.lang.String encodingType)
throws InvalidParameterException
encodingType - Type of encoding used for this key identifier. The
only supported values is
KeyIdentifier.BASE64_ENCODING_TYPE.
InvalidParameterException - If encodingType is
invalid.public java.lang.String getEncodingType()
String value that specifies the encoding. As
Base64Binary is only the type currently supported, this method
always returns a Base64Binary type.
public void setValue(byte[] value)
throws InvalidParameterException
value - A byte array containing the data to be
included in this key identifier.
InvalidParameterException - If value is invalid.public byte[] getValue()
byte array containing the data included in this
key identifier.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||