com.ibm.websphere.wssecurity.callbackhandler

Class GenericIssuedTokenGenerateCallback

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

  1. public class GenericIssuedTokenGenerateCallback
  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 generator of a outgoing generic issued token. It is important to note that an outgoing generic token (outbound request) is issued by a SecurityTokenService using WS-Trust Issue, or exchanged or validated from RunAs Subject by a SecurityTokenService using WS-Trust Validate.

Field Summary

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

Constructor Summary

Constructor and Description
GenericIssuedTokenGenerateCallback()

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getAppliesTo()
Returns AppliesTo.
  1. java.lang.String
getIssuer()
Return the token issuer name.
  1. java.util.Map<java.lang.String,java.lang.String>
getProperties()
Return WS-Trust request parameters as defined in RSTT
  1. java.lang.String
getSSLConfigUrl()
Returns SSLConfiguration location .
  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.lang.String
getUseToken()
Return the token's ValueType from tokens in RunAsSubject that client should use to directly Validate or exchange an issued token with SecurityTokenService.
  1. java.lang.String
getValidateTarget()
Return the optional flag that indicate how to pass validation target to STS.
  1. WSSConsumingContext
getWSSConsumingContext()
Gets WSSConsumingContext object.
  1. WSSConsumingContext
getWSSConsumingContextForValidation()
Gets WSSConsumingContext object for WS-Trust Validate request.
  1. WSSGenerationContext
getWSSGenerationContext()
Returns WSSGenerationContext object.
  1. WSSGenerationContext
getWSSGenerationContextForValidation()
Returns WSSGenerationContext object for WS-Trust Validate request.
  1. java.lang.String
getWstNamespace()
Return the WS-Trust namespace used in the SOAP communication with the Security Token provider.
  1. boolean
includeTokenType()
The optional flag if WS-Trust client RST message should include requested token's ValueType.
  1. boolean
isCollectionRequest()
  1. boolean
isUNTPasswordRequired()
Returns the flag to indicate if password is required when requested token is UsernameToken.
  1. void
setAppliesTo(java.lang.String uri)
  1. void
setCollectionRequest(boolean collectionRequest)
  1. void
setincludeTokenType(boolean status)
Set the optional flag if WS-Trust client RST message should include requested token's ValueType.
  1. void
setIssuer(java.lang.String issuer)
Set token issuer name.
  1. void
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Set RSTT for WS-Trust request
  1. void
setSSLConfigUrl(java.lang.String location)
Sets SSLConfigUrl object.
  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
setUNTPasswordRequired(boolean required)
Sets the flag to indicate if password is required when requested token is UsernameToken.
  1. void
setUseRunAsSubject(boolean state)
Set the flag if client should use a token from RunAsSubject to directly Validate or exchange the requested issued token with SecurityTokenService.
  1. void
setUseRunAsSubjectOnly(boolean state)
Set the flag if WS-Security runtime should continue to use WS-Trust Issue to request an issued token after it fails to use token in RunAsSubject to validate or exchange for an issued token by using WS-Trust Validate.
  1. void
setUseToken(java.lang.String token)
Set the token's ValueType from tokens in RunAsSubject that client should use to directly Validate or exchange an issued token with SecurityTokenService.
  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
setValidateUseToken(boolean state)
Set the flag if a token in RunAsSubject should be validated or exchanged directly with SecurityTokenService.
  1. void
setWSSConsumingContext(WSSConsumingContext concont)
Sets WSSConsumingContext object.
  1. void
setWSSConsumingContextForValidation(WSSConsumingContext concont)
Sets WSSConsumingContext object for WS-Trust Validate request.
  1. void
setWSSGenerationContext(WSSGenerationContext gencont)
Sets WSSGenerationContext object.
  1. void
setWSSGenerationContextForValidation(WSSGenerationContext gencont)
Sets WSSGenerationContext object for WS-Trust Validate request.
  1. void
setWstNamespace(java.lang.String ns)
Set WS-Trust namespace used in the SOAP communication with the Security Token provider.
  1. boolean
useRunAsSubject()
Return the flag if client should use a token from RunAsSubject to directly Validate or exchange the requested issued token with SecurityTokenService.
  1. boolean
useRunAsSubjectOnly()
Returns the flag if WS-Security runtime should continue to use WS-Trust Issue to request an issued token after it fails to use token in RunAsSubject to validate or exchange for an issued token by using WS-Trust Validate.
  1. boolean
validateUseToken()
Return the flag that a token in RunAsSubject should be validated or exchanged directly with SecurityTokenService.
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

GenericIssuedTokenGenerateCallback

  1. public GenericIssuedTokenGenerateCallback( )

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

includeTokenType

  1. public boolean includeTokenType( )
The optional flag if WS-Trust client RST message should include requested token's ValueType.
Returns:
optional flag to include or exclude token's ValueType in RST message.

setincludeTokenType

  1. public void setincludeTokenType( boolean status)
Set the optional flag if WS-Trust client RST message should include requested token's ValueType.

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.

useRunAsSubject

  1. public boolean useRunAsSubject( )
Return the flag if client should use a token from RunAsSubject to directly Validate or exchange the requested issued token with SecurityTokenService.
Returns:
the optional flag to use RunAsSubject for token exchange with SecurityTokenService.

setUseRunAsSubject

  1. public void setUseRunAsSubject( boolean state)
Set the flag if client should use a token from RunAsSubject to directly Validate or exchange the requested issued token with SecurityTokenService.

getUseToken

  1. public java.lang.String getUseToken( )
Return the token's ValueType from tokens in RunAsSubject that client should use to directly Validate or exchange an issued token with SecurityTokenService. If not specified, the token ValueType configured in policyset is used.
Returns:
token ValueType from tokens in RunAsSubject to be used to exchange an issued token with SecurityTokenService.

setUseToken

  1. public void setUseToken(java.lang.String token)
Set the token's ValueType from tokens in RunAsSubject that client should use to directly Validate or exchange an issued token with SecurityTokenService.
Parameters:
token - ValueType from tokens in RunAsSubject to be used to exchange an issued token with SecurityTokenService.

validateUseToken

  1. public boolean validateUseToken( )
Return the flag that a token in RunAsSubject should be validated or exchanged directly with SecurityTokenService. If not specified, the token will be validated against SecurityTokenService before using as an outgoing authentication token.
Returns:
flag if a used token from RunAsSubject should be validated against SecurityTokenService when using as outgoing authentication token.

setValidateUseToken

  1. public void setValidateUseToken( boolean state)
Set the flag if a token in RunAsSubject should be validated or exchanged directly with SecurityTokenService. If not specified, the token will be validated against SecurityTokenService before using as an outgoing authentication token.

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".

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.

useRunAsSubjectOnly

  1. public boolean useRunAsSubjectOnly( )
Returns the flag if WS-Security runtime should continue to use WS-Trust Issue to request an issued token after it fails to use token in RunAsSubject to validate or exchange for an issued token by using WS-Trust Validate. If property is not set, WS-Trust Issue will be used to request an issued token after WS-Trust Validate fails to exchange an issued token with a token from RunasSubject.
Returns:
the flag if WS-Trust Issue should be used to request an issued token after WS-Trust Validate fails to exchange an issued token using token from RunAsSubject.

setUseRunAsSubjectOnly

  1. public void setUseRunAsSubjectOnly( boolean state)
Set the flag if WS-Security runtime should continue to use WS-Trust Issue to request an issued token after it fails to use token in RunAsSubject to validate or exchange for an issued token by using WS-Trust Validate. If property is not set, WS-Trust Issue will be used to request an issued token after WS-Trust Validate fails to exchange an issued token with a token from RunasSubject.

isUNTPasswordRequired

  1. public boolean isUNTPasswordRequired( )
Returns the flag to indicate if password is required when requested token is UsernameToken.
Returns:
the flag to indicate if password is required when requested token is UsernameToken.

setUNTPasswordRequired

  1. public void setUNTPasswordRequired( boolean required)
Sets the flag to indicate if password is required when requested token is UsernameToken.

getWSSConsumingContext

  1. public WSSConsumingContext getWSSConsumingContext( )
Gets WSSConsumingContext object.
Returns:
WSSConsumingContext object

setWSSConsumingContext

  1. public void setWSSConsumingContext( WSSConsumingContext concont)
Sets WSSConsumingContext object.
Parameters:
concont - WSSConsumingContext object

getWSSGenerationContext

  1. public WSSGenerationContext getWSSGenerationContext( )
Returns WSSGenerationContext object.
Returns:
WSSGenerationContext object

setWSSGenerationContext

  1. public void setWSSGenerationContext( WSSGenerationContext gencont)
Sets WSSGenerationContext object.
Parameters:
gencont - WSSGenerationContext object

getSSLConfigUrl

  1. public java.lang.String getSSLConfigUrl( )
Returns SSLConfiguration location .
Returns:
WSSLConfiguration location.

setSSLConfigUrl

  1. public void setSSLConfigUrl(java.lang.String location)
Sets SSLConfigUrl object.

getAppliesTo

  1. public java.lang.String getAppliesTo( )
Returns AppliesTo.
Returns:
AppliesTo.

setAppliesTo

  1. public void setAppliesTo(java.lang.String uri)

isCollectionRequest

  1. public boolean isCollectionRequest( )

setCollectionRequest

  1. public void setCollectionRequest( boolean collectionRequest)

getWSSConsumingContextForValidation

  1. public WSSConsumingContext getWSSConsumingContextForValidation( )
Gets WSSConsumingContext object for WS-Trust Validate request.
Returns:
WSSConsumingContext object

setWSSConsumingContextForValidation

  1. public void setWSSConsumingContextForValidation( WSSConsumingContext concont)
Sets WSSConsumingContext object for WS-Trust Validate request.
Parameters:
concont - WSSConsumingContext object

getWSSGenerationContextForValidation

  1. public WSSGenerationContext getWSSGenerationContextForValidation( )
Returns WSSGenerationContext object for WS-Trust Validate request.
Returns:
WSSGenerationContext object

setWSSGenerationContextForValidation

  1. public void setWSSGenerationContextForValidation( WSSGenerationContext gencont)
Sets WSSGenerationContext object for WS-Trust Validate request.
Parameters:
gencont - WSSGenerationContext object