com.sun.xml.ws.security.trust.impl
Class DefaultSTSConfiguration

java.lang.Object
  extended by com.sun.xml.ws.security.trust.impl.DefaultSTSConfiguration
All Implemented Interfaces:
STSConfiguration

public class DefaultSTSConfiguration
extends java.lang.Object
implements STSConfiguration


Constructor Summary
DefaultSTSConfiguration()
           
 
Method Summary
 void addTrustSPMetadata(TrustSPMetadata data, java.lang.String spEndpoint)
          Add TrustMetadata for the service provider as identified by the given end point.
 javax.security.auth.callback.CallbackHandler getCallbackHandler()
          Get CallbackHandler for handling certificates for the service provider and keys for the STS.
 boolean getEncryptIssuedKey()
          Retruns true if the issued keys from this STS must be encrypted.
 boolean getEncryptIssuedToken()
          Retruns true if the issued tokens from this STS must be encrypted.
 long getIssuedTokenTimeout()
           
 java.lang.String getIssuer()
          Get the Issuer for the STS which is a unique string identifing the STS.
 java.util.Map<java.lang.String,java.lang.Object> getOtherOptions()
          Gets a map that contains attributes that aren't bound to any typed property on this class.
 TrustSPMetadata getTrustSPMetadata(java.lang.String spEndpoint)
          Get TrustMetadata for the service provider as identified by the given end point.
 java.lang.String getType()
          Gets the implementation class of WSTrustContract for this STS.
 void setCallbackHandler(javax.security.auth.callback.CallbackHandler callbackHandler)
          Set CallbackHandler for handling certificates for the service provider and keys for the STS.
 void setEncryptIssuedKey(boolean encryptIssuedKey)
           
 void setEncryptIssuedToken(boolean encryptIssuedToken)
           
 void setIssuedTokenTimeout(long issuedTokenTimeout)
           
 void setIssuer(java.lang.String issuer)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSTSConfiguration

public DefaultSTSConfiguration()
Method Detail

addTrustSPMetadata

public void addTrustSPMetadata(TrustSPMetadata data,
                               java.lang.String spEndpoint)
Description copied from interface: STSConfiguration
Add TrustMetadata for the service provider as identified by the given end point.

Specified by:
addTrustSPMetadata in interface STSConfiguration

getTrustSPMetadata

public TrustSPMetadata getTrustSPMetadata(java.lang.String spEndpoint)
Description copied from interface: STSConfiguration
Get TrustMetadata for the service provider as identified by the given end point.

Specified by:
getTrustSPMetadata in interface STSConfiguration

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()
Description copied from interface: STSConfiguration
Gets the implementation class of WSTrustContract for this STS.

Specified by:
getType in interface STSConfiguration
Returns:
class name

setIssuer

public void setIssuer(java.lang.String issuer)

getIssuer

public java.lang.String getIssuer()
Description copied from interface: STSConfiguration
Get the Issuer for the STS which is a unique string identifing the STS.

Specified by:
getIssuer in interface STSConfiguration

setEncryptIssuedToken

public void setEncryptIssuedToken(boolean encryptIssuedToken)

getEncryptIssuedToken

public boolean getEncryptIssuedToken()
Description copied from interface: STSConfiguration
Retruns true if the issued tokens from this STS must be encrypted.

Specified by:
getEncryptIssuedToken in interface STSConfiguration

setEncryptIssuedKey

public void setEncryptIssuedKey(boolean encryptIssuedKey)

getEncryptIssuedKey

public boolean getEncryptIssuedKey()
Description copied from interface: STSConfiguration
Retruns true if the issued keys from this STS must be encrypted.

Specified by:
getEncryptIssuedKey in interface STSConfiguration

setIssuedTokenTimeout

public void setIssuedTokenTimeout(long issuedTokenTimeout)

getIssuedTokenTimeout

public long getIssuedTokenTimeout()
Specified by:
getIssuedTokenTimeout in interface STSConfiguration

setCallbackHandler

public void setCallbackHandler(javax.security.auth.callback.CallbackHandler callbackHandler)
Description copied from interface: STSConfiguration
Set CallbackHandler for handling certificates for the service provider and keys for the STS.

Specified by:
setCallbackHandler in interface STSConfiguration

getCallbackHandler

public javax.security.auth.callback.CallbackHandler getCallbackHandler()
Description copied from interface: STSConfiguration
Get CallbackHandler for handling certificates for the service provider and keys for the STS.

Specified by:
getCallbackHandler in interface STSConfiguration

getOtherOptions

public java.util.Map<java.lang.String,java.lang.Object> getOtherOptions()
Description copied from interface: STSConfiguration
Gets a map that contains attributes that aren't bound to any typed property on this class.

the map is keyed by the name of the attribute and the value is any object. the map returned by this method is live, and you can add new attribute by updating the map directly.

Specified by:
getOtherOptions in interface STSConfiguration
Returns:
always non-null