Interface BinarySecret
-
- All Superinterfaces:
XMLStructure
- All Known Implementing Classes:
BinarySecretImpl
,BinarySecretImpl
public interface BinarySecret extends XMLStructure
- Author:
- WS-Trust Implementation Team
-
-
Field Summary
Fields Modifier and Type Field Description static String
ASYMMETRIC_KEY_TYPE
Predefined constants for the Type of BinarySecret desired in the Security Token Values for the wst:BinarySecret/@Type parameterstatic String
NONCE_KEY_TYPE
static String
SYMMETRIC_KEY_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<QName,String>
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.byte[]
getRawValue()
Gets the decoded value or the raw bytes of the binary secret.String
getTextValue()
Gets the encoded value of the binary secret.String
getType()
Gets the value of the type property.void
setRawValue(byte[] rawText)
Sets the value of the binary secret as raw bytes.void
setTextValue(String encodedText)
Sets the value of the Binary Secret element.void
setType(String type)
Sets the value of the type property indicating the type of secret being encoded.-
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
-
-
-
Field Detail
-
ASYMMETRIC_KEY_TYPE
static final String ASYMMETRIC_KEY_TYPE
Predefined constants for the Type of BinarySecret desired in the Security Token Values for the wst:BinarySecret/@Type parameter- See Also:
- Constant Field Values
-
SYMMETRIC_KEY_TYPE
static final String SYMMETRIC_KEY_TYPE
- See Also:
- Constant Field Values
-
NONCE_KEY_TYPE
static final String NONCE_KEY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOtherAttributes
Map<QName,String> getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
- Returns:
- always non-null
-
getType
String getType()
Gets the value of the type property. This is a URI that indicates the type of secret being encoded.- Returns:
String
-
getRawValue
byte[] getRawValue()
Gets the decoded value or the raw bytes of the binary secret.- Returns:
- possible object is byte[]
-
getTextValue
String getTextValue()
Gets the encoded value of the binary secret. This represents the base64 encoded BinarySecret.- Returns:
String
-
setType
void setType(String type)
Sets the value of the type property indicating the type of secret being encoded.- Parameters:
type
-String
-
setTextValue
void setTextValue(String encodedText)
Sets the value of the Binary Secret element. This is the base64 encoded value of the raw BinarySecret.- Parameters:
encodedText
-String
-
setRawValue
void setRawValue(byte[] rawText)
Sets the value of the binary secret as raw bytes. The value that appears in the element will be encoded appropriately.- Parameters:
rawText
- allowed object is byte[]
-
-