FileDocCategorySizeDatePackage
BinarySecret.javaAPI DocExample4658Tue May 29 16:56:54 BST 2007com.sun.xml.ws.security.trust.elements

BinarySecret

public interface BinarySecret
author
WS-Trust Implementation Team

Fields Summary
public 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
public static final String
SYMMETRIC_KEY_TYPE
public static final String
NONCE_KEY_TYPE
Constructors Summary
Methods Summary
public java.util.MapgetOtherAttributes()
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.

return
always non-null

public byte[]getRawValue()
Gets the decoded value or the raw bytes of the binary secret.

return
{@link byte[]}

public java.lang.StringgetTextValue()
Gets the encoded value of the binary secret. This represents the base64 encoded BinarySecret.

return
{@link String}
see
{getRawValue}

public java.lang.StringgetType()
Gets the value of the type property. This is a URI that indicates the type of secret being encoded.

return
{@link String }

public voidsetRawValue(byte[] rawText)
Sets the value of the binary secret as raw bytes. The value that appears in the element will be encoded appropriately.

param
rawText {@link byte[]}

public voidsetTextValue(java.lang.String encodedText)
Sets the value of the Binary Secret element. This is the base64 encoded value of the raw BinarySecret.

param
encodedText {@link String }

public voidsetType(java.lang.String type)
Sets the value of the type property indicating the type of secret being encoded.

param
type {@link String }