com.sun.xml.ws.security.trust.impl.wssx.elements
Class BinarySecretImpl

java.lang.Object
  extended by com.sun.xml.ws.security.trust.impl.wssx.bindings.BinarySecretType
      extended by com.sun.xml.ws.security.trust.impl.wssx.elements.BinarySecretImpl
All Implemented Interfaces:
BinarySecret

public class BinarySecretImpl
extends BinarySecretType
implements BinarySecret

Author:
WS-Trust Implementation Team

Field Summary
 
Fields inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.BinarySecretType
type, value
 
Fields inherited from interface com.sun.xml.ws.security.trust.elements.BinarySecret
ASYMMETRIC_KEY_TYPE, NONCE_KEY_TYPE, SYMMETRIC_KEY_TYPE
 
Constructor Summary
BinarySecretImpl(BinarySecretType bsType)
           
BinarySecretImpl(byte[] rawValue, String type)
           
 
Method Summary
static BinarySecretType fromElement(Element element)
          Constructs a BinarySecret element from an existing XML block.
 byte[] getRawValue()
           
 String getTextValue()
           
 void setRawValue(byte[] rawText)
           
 void setTextValue(String encodedText)
           
 
Methods inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.BinarySecretType
getOtherAttributes, getType, getValue, setType, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.ws.security.trust.elements.BinarySecret
getOtherAttributes, getType, setType
 

Constructor Detail

BinarySecretImpl

public BinarySecretImpl(byte[] rawValue,
                        String type)

BinarySecretImpl

public BinarySecretImpl(BinarySecretType bsType)
Method Detail

fromElement

public static BinarySecretType fromElement(Element element)
                                    throws WSTrustException
Constructs a BinarySecret element from an existing XML block.

Parameters:
lifetimeElement - A org.w3c.dom.Element representing DOM tree for BinarySecret object.
Throws:
WSTrustException - if it could not process the org.w3c.dom.Element properly, implying that there is an error in the sender or in the element definition.

getRawValue

public byte[] getRawValue()
Specified by:
getRawValue in interface BinarySecret

getTextValue

public String getTextValue()
Specified by:
getTextValue in interface BinarySecret

setRawValue

public void setRawValue(byte[] rawText)
Specified by:
setRawValue in interface BinarySecret

setTextValue

public void setTextValue(String encodedText)
Specified by:
setTextValue in interface BinarySecret


Copyright © 2005-2012 Oracle Corporation. All Rights Reserved.