Methods Summary |
---|
public static com.sun.xml.ws.security.trust.impl.bindings.EntropyType | fromElement(org.w3c.dom.Element element)Constructs a Entropy element from
an existing XML block.
try {
final javax.xml.bind.Unmarshaller unmarshaller = WSTrustElementFactory.getContext().createUnmarshaller();
return (EntropyType)unmarshaller.unmarshal(element);
} 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 com.sun.xml.ws.security.trust.elements.BinarySecret | getBinarySecret()Gets the BinarySecret (if any) inside this Entropy
return binarySecret;
|
public com.sun.xml.ws.security.EncryptedKey | getEncryptedKey()Gets the xenc:EncryptedKey set inside this Entropy instance
return encryptedKey;
|
public java.lang.String | getEntropyType()Gets the type of the Entropy contents
return entropyType;
|
public final void | setBinarySecret(com.sun.xml.ws.security.trust.elements.BinarySecret binarySecret)Sets the BinarySecret (if any) inside this Entropy
if (binarySecret != null) {
this.binarySecret = binarySecret;
final JAXBElement<BinarySecretType> bsElement =
(new ObjectFactory()).createBinarySecret((BinarySecretType)binarySecret);
getAny().add(bsElement);
}
|
public final void | setEncryptedKey(com.sun.xml.ws.security.EncryptedKey encryptedKey)Sets the xenc:EncryptedKey set inside this Entropy instance
if (encryptedKey != null) {
this.encryptedKey = encryptedKey;
getAny().add(encryptedKey);
}
|
public final void | setEntropyType(java.lang.String type)Sets the type of the Entropy contents
if (!(type.equalsIgnoreCase(this.BINARY_SECRET_TYPE) ||
type.equalsIgnoreCase(this.CUSTOM_TYPE)
|| type.equalsIgnoreCase(this.ENCRYPTED_KEY_TYPE))) {
log.log(Level.SEVERE,
LogStringsMessages.WST_0022_INVALID_ENTROPY(type));
throw new RuntimeException(LogStringsMessages.WST_0022_INVALID_ENTROPY(type));
}
entropyType = type;
getOtherAttributes().put(_EntropyType_QNAME,type);
|