Class BinarySecretImpl
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.wssx.bindings.BinarySecretType
-
- com.sun.xml.ws.security.trust.impl.wssx.elements.BinarySecretImpl
-
- All Implemented Interfaces:
com.sun.xml.ws.security.trust.elements.BinarySecret,XMLStructure
public class BinarySecretImpl extends BinarySecretType implements com.sun.xml.ws.security.trust.elements.BinarySecret
- Author:
- WS-Trust Implementation Team
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.BinarySecretType
type, value
-
-
Constructor Summary
Constructors Constructor Description BinarySecretImpl(byte[] rawValue, String type)BinarySecretImpl(BinarySecretType bsType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BinarySecretTypefromElement(Element element)Constructs aBinarySecretelement from an existing XML block.byte[]getRawValue()StringgetTextValue()voidsetRawValue(byte[] rawText)voidsetTextValue(String encodedText)-
Methods inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.BinarySecretType
getOtherAttributes, getType, getValue, isFeatureSupported, 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
-
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
-
-
-
Constructor Detail
-
BinarySecretImpl
public BinarySecretImpl(byte[] rawValue, String type)
-
BinarySecretImpl
public BinarySecretImpl(BinarySecretType bsType)
-
-
Method Detail
-
fromElement
public static BinarySecretType fromElement(Element element) throws com.sun.xml.ws.api.security.trust.WSTrustException
Constructs aBinarySecretelement from an existing XML block.- Parameters:
element-org.w3c.dom.Elementrepresenting DOM tree forBinarySecretobject.- Throws:
com.sun.xml.ws.api.security.trust.WSTrustException- if it could not process theorg.w3c.dom.Elementproperly, implying that there is an error in the sender or in the element definition.
-
getRawValue
public byte[] getRawValue()
- Specified by:
getRawValuein interfacecom.sun.xml.ws.security.trust.elements.BinarySecret
-
getTextValue
public String getTextValue()
- Specified by:
getTextValuein interfacecom.sun.xml.ws.security.trust.elements.BinarySecret
-
setRawValue
public void setRawValue(byte[] rawText)
- Specified by:
setRawValuein interfacecom.sun.xml.ws.security.trust.elements.BinarySecret
-
setTextValue
public void setTextValue(String encodedText)
- Specified by:
setTextValuein interfacecom.sun.xml.ws.security.trust.elements.BinarySecret
-
-