Methods Summary |
---|
public static com.sun.xml.ws.security.trust.impl.bindings.BinarySecretType | fromElement(org.w3c.dom.Element element)Constructs a BinarySecret element from
an existing XML block.
try {
final javax.xml.bind.Unmarshaller u = WSTrustElementFactory.getContext().createUnmarshaller();
return (BinarySecretType)((JAXBElement)u.unmarshal(element)).getValue();
} catch (JAXBException ex) {
log.log(Level.SEVERE,
LogStringsMessages.WST_0021_ERROR_UNMARSHAL_DOM_ELEMENT(), ex);
throw new WSTrustException(LogStringsMessages.WST_0021_ERROR_UNMARSHAL_DOM_ELEMENT(), ex);
}
|
public byte[] | getRawValue()
return super.getValue();
|
public java.lang.String | getTextValue()
return Base64.encode(getRawValue());
|
public final void | setRawValue(byte[] rawText)
setValue(rawText);
|
public void | setTextValue(java.lang.String encodedText)
try {
setValue(Base64.decode(encodedText));
} catch (Base64DecodingException de) {
log.log(Level.SEVERE,
LogStringsMessages.WST_0020_ERROR_DECODING(encodedText), de);
throw new RuntimeException(LogStringsMessages.WST_0020_ERROR_DECODING(encodedText), de);
}
|