Methods Summary |
---|
public static com.sun.xml.ws.security.trust.impl.bindings.RequestedProofTokenType | fromElement(org.w3c.dom.Element element)
try {
final javax.xml.bind.Unmarshaller unmarshaller = WSTrustElementFactory.getContext().createUnmarshaller();
return (RequestedProofTokenType)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()
return secret;
|
public java.net.URI | getComputedKey()
return computedKey;
|
public java.lang.String | getProofTokenType()
return tokenType;
|
public com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference | getSecurityTokenReference()
return str;
|
public final void | setBinarySecret(com.sun.xml.ws.security.trust.elements.BinarySecret secret)
if (secret != null) {
this.secret = secret;
final JAXBElement<BinarySecretType> bsElement=
(new ObjectFactory()).createBinarySecret((BinarySecretType)secret);
setAny(bsElement);
}
setProofTokenType(RequestedProofToken.BINARY_SECRET_TYPE);
|
public final void | setComputedKey(java.net.URI computedKey)
if (computedKey != null) {
final String ckString = computedKey.toString();
if (!(ckString.equalsIgnoreCase(WSTrustConstants.CK_HASH) || (ckString.equalsIgnoreCase(WSTrustConstants.CK_PSHA1)))) {
log.log(Level.SEVERE,
LogStringsMessages.WST_0028_INVALID_CK(ckString));
throw new RuntimeException(LogStringsMessages.WST_0028_INVALID_CK(ckString));
}
this.computedKey = computedKey;
final JAXBElement<String> ckElement=
(new ObjectFactory()).createComputedKey(computedKey.toString());
setAny(ckElement);
}
setProofTokenType(RequestedProofToken.COMPUTED_KEY_TYPE);
|
public final void | setProofTokenType(java.lang.String proofTokenType)
if (! (proofTokenType.equalsIgnoreCase(RequestedProofToken.BINARY_SECRET_TYPE)
|| proofTokenType.equalsIgnoreCase(RequestedProofToken.COMPUTED_KEY_TYPE)
|| proofTokenType.equalsIgnoreCase(RequestedProofToken.ENCRYPTED_KEY_TYPE)
|| proofTokenType.equalsIgnoreCase(RequestedProofToken.CUSTOM_TYPE)
|| proofTokenType.equalsIgnoreCase(RequestedProofToken.TOKEN_REF_TYPE)
)) {
log.log(Level.SEVERE,
LogStringsMessages.WST_0019_INVALID_PROOF_TOKEN_TYPE(proofTokenType, null));
throw new RuntimeException(LogStringsMessages.WST_0019_INVALID_PROOF_TOKEN_TYPE(proofTokenType, null));
}
tokenType = proofTokenType;
|
public void | setSecurityTokenReference(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference reference)
if (reference != null) {
str = reference;
final JAXBElement<SecurityTokenReferenceType> strElement=
(new com.sun.xml.ws.security.secext10.ObjectFactory()).createSecurityTokenReference((SecurityTokenReferenceType)reference);
setAny(strElement);
}
setProofTokenType(RequestedProofToken.TOKEN_REF_TYPE);
|