com.ibm.websphere.wssecurity.callbackhandler

Class GenericIssuedTokenConsumeCallback

  1. java.lang.Object
  2. extended bycom.ibm.websphere.wssecurity.callbackhandler.GenericIssuedTokenConsumeCallback
All implemented interfaces:
javax.security.auth.callback.Callback

  1. public class GenericIssuedTokenConsumeCallback
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.Callback
This is a Callback class used to collect configuration data associated with the consumer of an incoming generic issued token. It is important to note that an incoming generic token (inbound request) is validated against a SecurityTokenService using WS-Trust Validate.

Field Summary

Modifier and Type Field and Description
  1. java.lang.String[]
validateTargets

Constructor Summary

Constructor and Description
GenericIssuedTokenConsumeCallback()

Method Summary

Modifier and Type Method and Description
  1. boolean
enforceConfirmationMethodInTokenExchange()
Returns the option to check the receiving SAML subject confirmation method if SAMLToken has been exchanged.
  1. java.lang.String
getAlias()
Returns the alias name used by the consumer of the SAML token in its keyStore.
  1. java.lang.String
getConfirmationMethod()
Returns the ConfirmationMethod to be used when requesting/generating a SAML token.
  1. java.lang.String
getExchangedTokenType()
  1. java.lang.String
getIssuer()
Return the token issuer name.
  1. java.lang.String
getKeyName()
Returns the name of the key used by the token consumer.
  1. char[]
getKeyPassword()
Returns the password for recovering the key.
  1. char[]
getKeyStorePassword()
Returns the password for the keyStore used by the consumer of the SAML token.
  1. java.lang.String
getKeyStorePath()
Returns the file path for the keyStore used by the consumer of the SAML token.
  1. java.lang.String
getKeyStoreReference()
Returns the reference name of the keyStore used by the token consumer (e.g. a service).
  1. java.lang.String
getKeyStoreType()
Returns the type of the keyStore used by the consumer of the SAML token.
  1. java.util.Map<java.lang.String,java.lang.String>
getProperties()
Return WS-Trust request parameters as defined in RSTT
  1. java.lang.String
getStsBinding()
Returns the name for the policySet binding used by the WS-Trust client's Issue or Validate operation.
  1. java.lang.String
getStsBindingScope()
Return the binding scope for WS-Trust client, and it is either "domain" or "application".
  1. java.lang.String
getStsPolicy()
Returns the policySet name for WS-Trust client's Issue or Validate operation.
  1. java.lang.String
getStsSoapVersion()
Returns the SOAP version for the WS-Trust client.
  1. java.lang.String
getStsURI()
Returns the URL of SecurityTokenService that issues SecurityToken.
  1. java.lang.String
getStsValidateBinding()
Returns the name for the policySet binding used by the WS-Trust client's Validate operation.
  1. java.lang.String
getStsValidatePolicy()
Returns the policySet name for WS-Trust client's Validate operation.
  1. java.util.ArrayList<java.lang.String[]>
getTrustedIssuers()
  1. java.lang.String
getValidateTarget()
Return the optional flag that indicate how to pass validation target to STS.
  1. java.lang.String
getWstNamespace()
Return the WS-Trust namespace used in the SOAP communication with the Security Token provider.
  1. boolean
isCollectionRequest()
  1. void
setAlias(java.lang.String alias)
Sets the key alias name in the consumer's keyStore.
  1. void
setCollectionRequest(boolean collectionRequest)
  1. void
setConfirmationMethod(java.lang.String method)
Sets the type of Subject ConfirmationMethod to be used by the token requester.
  1. void
setEnforceConfirmationMethodInTokenExchange(boolean option)
Sets the option to check the receiving SAML subject confirmation method if SAMLToken has been exchanged.
  1. void
setExchangedTokenType(java.lang.String type)
  1. void
setIssuer(java.lang.String issuer)
Set token issuer name.
  1. void
setKeyName(java.lang.String keyName)
Sets the name of the key used by the token consumer.
  1. void
setKeyPassword(char[] keyPassword)
Sets the password for recovering the key.
  1. void
setKeyStorePassword(char[] keyStorePassword)
Sets the type of the keyStore used by the consumer of the SAML token.
  1. void
setKeyStorePath(java.lang.String keyStorePath)
Sets the file path for the keyStore used by the consumer of the SAML token..
  1. void
setKeyStoreReference(java.lang.String keyStoreRef)
Sets the reference name of the keyStore used by the token consumer (e.g. a service).
  1. void
setKeyStoreType(java.lang.String keyStoreType)
Sets the type of the keyStore by the consumer of the SAML token.
  1. void
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Set RSTT for WS-Trust request
  1. void
setStsBinding(java.lang.String binding)
Sets the name of WS-Trust client bindings for WS-Trust's Issue or Validate operation.
  1. void
setStsBindingScope(java.lang.String scope)
Sets the binding scope for WS-Trust client, and it could be set to "domain" or "application".
  1. void
setStsPolicy(java.lang.String policy)
Sets the name of WS-Trust client policy set for Issue or Validate operation.
  1. void
setStsSoapVersion(java.lang.String ns)
Sets the required SOAP version of WS-Trust client.
  1. void
setStsURI(java.lang.String uri)
Sets the URL name of SecurityTokenservice.
  1. void
setStsValidateBinding(java.lang.String binding)
Sets the name of WS-Trust client bindings for WS-Trust's Validate operation.
  1. void
setStsValidatePolicy(java.lang.String policy)
Sets the name of WS-Trust client policy set for Validate operation.
  1. void
setTrustedIssuers(java.util.ArrayList<java.lang.String[]> issuers)
  1. void
setValidateTarget(java.lang.String target)
Set flag to indicate how Validate message for WS-Trust request should be formated, the valid options are "token" or "base".
  1. void
setWstNamespace(java.lang.String ns)
Set WS-Trust namespace used in the SOAP communication with the Security Token provider.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

validateTargets

  1. public java.lang.String[] validateTargets

Constructor Detail

GenericIssuedTokenConsumeCallback

  1. public GenericIssuedTokenConsumeCallback( )

Method Detail

getStsURI

  1. public java.lang.String getStsURI( )
Returns the URL of SecurityTokenService that issues SecurityToken.
Returns:
the URL of SecurityTokenService.

setStsURI

  1. public void setStsURI(java.lang.String uri)
Sets the URL name of SecurityTokenservice.
Parameters:
uri - the URL name of the Security Token Service (STS).

getStsPolicy

  1. public java.lang.String getStsPolicy( )
Returns the policySet name for WS-Trust client's Issue or Validate operation.
Returns:
the policySet name for WS-Trust client's Issue or Validate operation.

setStsPolicy

  1. public void setStsPolicy(java.lang.String policy)
Sets the name of WS-Trust client policy set for Issue or Validate operation.

getStsBinding

  1. public java.lang.String getStsBinding( )
Returns the name for the policySet binding used by the WS-Trust client's Issue or Validate operation.
Returns:
the name of the policySet binding for the WS-Trust client's Issue or Validate operation.

setStsBinding

  1. public void setStsBinding(java.lang.String binding)
Sets the name of WS-Trust client bindings for WS-Trust's Issue or Validate operation.
Parameters:
binding - the name of WS-Trust client bindings for WS-Trust's Issue or Validate operation.

getWstNamespace

  1. public java.lang.String getWstNamespace( )
Return the WS-Trust namespace used in the SOAP communication with the Security Token provider. wstNamespace is a String value that can be set to "http://schemas.xmlsoap.org/ws/2005/02/trust" for ws-trust 1.2, or "http://docs.oasis-open.org/ws-sx/ws-trust/200512" for ws-trust 1.3.
Returns:
the WS-Trust namespace.

setWstNamespace

  1. public void setWstNamespace(java.lang.String ns)
Set WS-Trust namespace used in the SOAP communication with the Security Token provider. wstNamespace is a String value that can be set to "http://schemas.xmlsoap.org/ws/2005/02/trust" for ws-trust 1.2, or "http://docs.oasis-open.org/ws-sx/ws-trust/200512" for ws-trust 1.3

getStsSoapVersion

  1. public java.lang.String getStsSoapVersion( )
Returns the SOAP version for the WS-Trust client.
Returns:
the the SOAP version for the WS-Trust client, the valid values are 1.1 or 1.2

setStsSoapVersion

  1. public void setStsSoapVersion(java.lang.String ns)
Sets the required SOAP version of WS-Trust client.

getStsBindingScope

  1. public java.lang.String getStsBindingScope( )
Return the binding scope for WS-Trust client, and it is either "domain" or "application". A value of domain indicates that the specifiied binding is a general binding, and a value of application indicates that the specified binding is an application specific binding.
Returns:
the binding scope for WS-Trust client, and it is either "domain" or "application".

setStsBindingScope

  1. public void setStsBindingScope( java.lang.String scope)
Sets the binding scope for WS-Trust client, and it could be set to "domain" or "application". A value of domain indicates that the specified binding is a general binding, and a value of application indicates that the specified binding is an application specific binding.
Parameters:
scope - the binding scope for WS-Trust client, and it is either "domain" or "application".

getProperties

  1. public java.util.Map<java.lang.String,java.lang.String> getProperties( )
Return WS-Trust request parameters as defined in RSTT
Returns:
WS-Trust RSTT parameters

setProperties

  1. public void setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Set RSTT for WS-Trust request

getExchangedTokenType

  1. public java.lang.String getExchangedTokenType( )

setExchangedTokenType

  1. public void setExchangedTokenType( java.lang.String type)

getValidateTarget

  1. public java.lang.String getValidateTarget( )
Return the optional flag that indicate how to pass validation target to STS. The valid options are "token", "base".
Returns:
flag to indicate how to pass validation target to STS.

setValidateTarget

  1. public void setValidateTarget(java.lang.String target)
Set flag to indicate how Validate message for WS-Trust request should be formated, the valid options are "token" or "base".

getIssuer

  1. public java.lang.String getIssuer( )
Return the token issuer name.
Returns:
the optional token issuer name.

setIssuer

  1. public void setIssuer(java.lang.String issuer)
Set token issuer name.

getStsValidatePolicy

  1. public java.lang.String getStsValidatePolicy( )
Returns the policySet name for WS-Trust client's Validate operation.
Returns:
the policySet name for WS-Trust client's Validate operation.

setStsValidatePolicy

  1. public void setStsValidatePolicy( java.lang.String policy)
Sets the name of WS-Trust client policy set for Validate operation.

getStsValidateBinding

  1. public java.lang.String getStsValidateBinding( )
Returns the name for the policySet binding used by the WS-Trust client's Validate operation.
Returns:
the name of the policySet binding for the WS-Trust client's Validate operation.

setStsValidateBinding

  1. public void setStsValidateBinding( java.lang.String binding)
Sets the name of WS-Trust client bindings for WS-Trust's Validate operation.
Parameters:
binding - the name of WS-Trust client bindings for WS-Trust's Validate operation.

getKeyStoreReference

  1. public java.lang.String getKeyStoreReference( )
Returns the reference name of the keyStore used by the token consumer (e.g. a service).
Returns:
reference name of the keyStore of the token consumer.

setKeyStoreReference

  1. public void setKeyStoreReference( java.lang.String keyStoreRef)
Sets the reference name of the keyStore used by the token consumer (e.g. a service).
Parameters:
keyStoreRef - string representing the reference name of the keyStore.

getKeyStorePath

  1. public java.lang.String getKeyStorePath( )
Returns the file path for the keyStore used by the consumer of the SAML token.
Returns:
String that contains the path of the keyStore.

setKeyStorePath

  1. public void setKeyStorePath(java.lang.String keyStorePath)
Sets the file path for the keyStore used by the consumer of the SAML token..
Parameters:
keyStorePath - string representing the path to the keyStore.

getKeyStoreType

  1. public java.lang.String getKeyStoreType( )
Returns the type of the keyStore used by the consumer of the SAML token.
Returns:
type of the keyStore

setKeyStoreType

  1. public void setKeyStoreType(java.lang.String keyStoreType)
Sets the type of the keyStore by the consumer of the SAML token.
Parameters:
keyStoreType - string representing the type of the keyStore

getKeyStorePassword

  1. public char[] getKeyStorePassword( )
Returns the password for the keyStore used by the consumer of the SAML token.
Returns:
charcter array that contains the password used to check the integrity or unlock the keyStore used by the consumer of a SAML token.

setKeyStorePassword

  1. public void setKeyStorePassword( char[] keyStorePassword)
Sets the type of the keyStore used by the consumer of the SAML token.
Parameters:
keyStorePassword - character array that contains the password used to check the integrity or unlock the keyStore for the consumer of the SAML token.

getAlias

  1. public java.lang.String getAlias( )
Returns the alias name used by the consumer of the SAML token in its keyStore.
Returns:
alias string representing the key alias name.

setAlias

  1. public void setAlias(java.lang.String alias)
Sets the key alias name in the consumer's keyStore.
Parameters:
alias - string representing the alias name.

getKeyPassword

  1. public char[] getKeyPassword()
Returns the password for recovering the key.
Returns:
character array that contains the password used for recovering the key.

setKeyPassword

  1. public void setKeyPassword(char[] keyPassword)
Sets the password for recovering the key.
Parameters:
keyPassword - character array that contains the password for recovering the key.

getKeyName

  1. public java.lang.String getKeyName( )
Returns the name of the key used by the token consumer.
Returns:
String that contains the key.

setKeyName

  1. public void setKeyName(java.lang.String keyName)
Sets the name of the key used by the token consumer.
Parameters:
keyName - string that contains the name of the key.

getConfirmationMethod

  1. public java.lang.String getConfirmationMethod( )
Returns the ConfirmationMethod to be used when requesting/generating a SAML token.
Returns:
the required Subject ConfirmationMethod. The valid values are "holder-of-key", "bearer", or "sender-vouches"

setConfirmationMethod

  1. public void setConfirmationMethod( java.lang.String method)
Sets the type of Subject ConfirmationMethod to be used by the token requester.
Parameters:
method - a string identifying the Subject ConfirmationMethod.

enforceConfirmationMethodInTokenExchange

  1. public boolean enforceConfirmationMethodInTokenExchange( )
Returns the option to check the receiving SAML subject confirmation method if SAMLToken has been exchanged.
Returns:
the option to check the receiving SAML subject confirmation method if SAMLToken has been exchanged.

setEnforceConfirmationMethodInTokenExchange

  1. public void setEnforceConfirmationMethodInTokenExchange( boolean option)
Sets the option to check the receiving SAML subject confirmation method if SAMLToken has been exchanged.

isCollectionRequest

  1. public boolean isCollectionRequest( )

setCollectionRequest

  1. public void setCollectionRequest( boolean collectionRequest)

getTrustedIssuers

  1. public java.util.ArrayList<java.lang.String[]> getTrustedIssuers( )
Returns:
a list of trusted SAML Issuers, each contains Issuer name and/or Signer certificate's SubjectDN

setTrustedIssuers

  1. public void setTrustedIssuers(java.util.ArrayList<java.lang.String[]> issuers)