com.sun.xml.ws.security.trust.impl.elements
Class RequestedProofTokenImpl

java.lang.Object
  extended by com.sun.xml.ws.security.trust.impl.bindings.RequestedProofTokenType
      extended by com.sun.xml.ws.security.trust.impl.elements.RequestedProofTokenImpl
All Implemented Interfaces:
RequestedProofToken

public class RequestedProofTokenImpl
extends RequestedProofTokenType
implements RequestedProofToken

Author:
Manveen Kaur

Field Summary
 
Fields inherited from class com.sun.xml.ws.security.trust.impl.bindings.RequestedProofTokenType
any
 
Fields inherited from interface com.sun.xml.ws.security.trust.elements.RequestedProofToken
BINARY_SECRET_TYPE, COMPUTED_KEY_TYPE, CUSTOM_TYPE, ENCRYPTED_KEY_TYPE, TOKEN_REF_TYPE
 
Constructor Summary
RequestedProofTokenImpl()
           
RequestedProofTokenImpl(RequestedProofTokenType rptType)
           
RequestedProofTokenImpl(String proofTokenType)
           
 
Method Summary
static RequestedProofTokenType fromElement(Element element)
           
 BinarySecret getBinarySecret()
          Gets the BinarySecret proof Token if set
 URI getComputedKey()
          Get the Computed Key URI (describing how to compute the Key)
 String getProofTokenType()
          Get the type of ProofToken present in this RequestedProofToken Instance
 SecurityTokenReference getSecurityTokenReference()
          Gets the SecrityTokenReference if set
 void setBinarySecret(BinarySecret secret)
          Sets a wst:BinarySecret as the Proof Token
 void setComputedKey(URI computedKey)
          Sets the Computed Key URI (describing how to compute the Key)
 void setProofTokenType(String proofTokenType)
          Set the type of ProofToken present in this RequestedProofToken Instance
 void setSecurityTokenReference(SecurityTokenReference reference)
          Set a SecurityTokenReference as the Proof Token
 
Methods inherited from class com.sun.xml.ws.security.trust.impl.bindings.RequestedProofTokenType
getAny, setAny
 
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.RequestedProofToken
getAny, setAny
 

Constructor Detail

RequestedProofTokenImpl

public RequestedProofTokenImpl()

RequestedProofTokenImpl

public RequestedProofTokenImpl(String proofTokenType)

RequestedProofTokenImpl

public RequestedProofTokenImpl(RequestedProofTokenType rptType)
Method Detail

getProofTokenType

public String getProofTokenType()
Description copied from interface: RequestedProofToken
Get the type of ProofToken present in this RequestedProofToken Instance

Specified by:
getProofTokenType in interface RequestedProofToken

setProofTokenType

public final void setProofTokenType(@NotNull
                                    String proofTokenType)
Description copied from interface: RequestedProofToken
Set the type of ProofToken present in this RequestedProofToken Instance

Specified by:
setProofTokenType in interface RequestedProofToken
See Also:
getProofTokenType

setSecurityTokenReference

public void setSecurityTokenReference(SecurityTokenReference reference)
Description copied from interface: RequestedProofToken
Set a SecurityTokenReference as the Proof Token

Specified by:
setSecurityTokenReference in interface RequestedProofToken

getSecurityTokenReference

public SecurityTokenReference getSecurityTokenReference()
Description copied from interface: RequestedProofToken
Gets the SecrityTokenReference if set

Specified by:
getSecurityTokenReference in interface RequestedProofToken
Returns:
SecurityTokenReference if set, null otherwise

setComputedKey

public final void setComputedKey(@NotNull
                                 URI computedKey)
Description copied from interface: RequestedProofToken
Sets the Computed Key URI (describing how to compute the Key)

Specified by:
setComputedKey in interface RequestedProofToken

getComputedKey

public URI getComputedKey()
Description copied from interface: RequestedProofToken
Get the Computed Key URI (describing how to compute the Key)

Specified by:
getComputedKey in interface RequestedProofToken
Returns:
computed key URI or null if none is set

setBinarySecret

public final void setBinarySecret(BinarySecret secret)
Description copied from interface: RequestedProofToken
Sets a wst:BinarySecret as the Proof Token

Specified by:
setBinarySecret in interface RequestedProofToken

getBinarySecret

public BinarySecret getBinarySecret()
Description copied from interface: RequestedProofToken
Gets the BinarySecret proof Token if set

Specified by:
getBinarySecret in interface RequestedProofToken
Returns:
BinarySecret if set, null otherwise

fromElement

public static RequestedProofTokenType fromElement(Element element)
                                           throws WSTrustException
Throws:
WSTrustException


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