public class GenericIssuedTokenConsumeCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
validateTargets |
Constructor and Description |
---|
GenericIssuedTokenConsumeCallback() |
Modifier and Type | Method and Description |
---|---|
boolean |
enforceConfirmationMethodInTokenExchange()
Returns the option to check the receiving SAML subject confirmation method if SAMLToken has been exchanged.
|
java.lang.String |
getAlias()
Returns the alias name used by the consumer of the SAML token in its keyStore.
|
java.lang.String |
getConfirmationMethod()
Returns the ConfirmationMethod to be used when requesting/generating a SAML token.
|
java.lang.String |
getExchangedTokenType() |
java.lang.String |
getIssuer()
Return the token issuer name.
|
java.lang.String |
getKeyName()
Returns the name of the key used by the token consumer.
|
char[] |
getKeyPassword()
Returns the password for recovering the key.
|
char[] |
getKeyStorePassword()
Returns the password for the keyStore used by the consumer of the SAML token.
|
java.lang.String |
getKeyStorePath()
Returns the file path for the keyStore used by the consumer of the SAML token.
|
java.lang.String |
getKeyStoreReference()
Returns the reference name of the keyStore used by the token consumer (e.g. a service).
|
java.lang.String |
getKeyStoreType()
Returns the type of the keyStore used by the consumer of the SAML token.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Return WS-Trust request parameters as defined in RSTT
|
java.lang.String |
getStsBinding()
Returns the name for the policySet binding used by the WS-Trust client's Issue or Validate operation.
|
java.lang.String |
getStsBindingScope()
Return the binding scope for WS-Trust client, and it is either "domain" or "application".
|
java.lang.String |
getStsPolicy()
Returns the policySet name for WS-Trust client's Issue or Validate operation.
|
java.lang.String |
getStsSoapVersion()
Returns the SOAP version for the WS-Trust client.
|
java.lang.String |
getStsURI()
Returns the URL of SecurityTokenService that issues SecurityToken.
|
java.lang.String |
getStsValidateBinding()
Returns the name for the policySet binding used by the WS-Trust client's Validate operation.
|
java.lang.String |
getStsValidatePolicy()
Returns the policySet name for WS-Trust client's Validate operation.
|
java.util.ArrayList<java.lang.String[]> |
getTrustedIssuers() |
java.lang.String |
getValidateTarget()
Return the optional flag that indicate how to pass validation target to STS.
|
java.lang.String |
getWstNamespace()
Return the WS-Trust namespace used in the SOAP communication with the Security Token provider.
|
boolean |
isCollectionRequest() |
void |
setAlias(java.lang.String alias)
Sets the key alias name in the consumer's keyStore.
|
void |
setCollectionRequest(boolean collectionRequest) |
void |
setConfirmationMethod(java.lang.String method)
Sets the type of Subject ConfirmationMethod to be used by the token requester.
|
void |
setEnforceConfirmationMethodInTokenExchange(boolean option)
Sets the option to check the receiving SAML subject confirmation method if SAMLToken has been exchanged.
|
void |
setExchangedTokenType(java.lang.String type) |
void |
setIssuer(java.lang.String issuer)
Set token issuer name.
|
void |
setKeyName(java.lang.String keyName)
Sets the name of the key used by the token consumer.
|
void |
setKeyPassword(char[] keyPassword)
Sets the password for recovering the key.
|
void |
setKeyStorePassword(char[] keyStorePassword)
Sets the type of the keyStore used by the consumer of the SAML token.
|
void |
setKeyStorePath(java.lang.String keyStorePath)
Sets the file path for the keyStore used by the consumer of the SAML token..
|
void |
setKeyStoreReference(java.lang.String keyStoreRef)
Sets the reference name of the keyStore used by the token consumer (e.g. a service).
|
void |
setKeyStoreType(java.lang.String keyStoreType)
Sets the type of the keyStore by the consumer of the SAML token.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Set RSTT for WS-Trust request
|
void |
setStsBinding(java.lang.String binding)
Sets the name of WS-Trust client bindings for WS-Trust's Issue or Validate operation.
|
void |
setStsBindingScope(java.lang.String scope)
Sets the binding scope for WS-Trust client, and it could be set to "domain" or "application".
|
void |
setStsPolicy(java.lang.String policy)
Sets the name of WS-Trust client policy set for Issue or Validate operation.
|
void |
setStsSoapVersion(java.lang.String ns)
Sets the required SOAP version of WS-Trust client.
|
void |
setStsURI(java.lang.String uri)
Sets the URL name of SecurityTokenservice.
|
void |
setStsValidateBinding(java.lang.String binding)
Sets the name of WS-Trust client bindings for WS-Trust's Validate operation.
|
void |
setStsValidatePolicy(java.lang.String policy)
Sets the name of WS-Trust client policy set for Validate operation.
|
void |
setTrustedIssuers(java.util.ArrayList<java.lang.String[]> issuers) |
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".
|
void |
setWstNamespace(java.lang.String ns)
Set WS-Trust namespace used in the SOAP communication with the Security Token provider.
|
public java.lang.String getStsURI()
public void setStsURI(java.lang.String uri)
uri
- the URL name of the Security Token Service (STS).public java.lang.String getStsPolicy()
public void setStsPolicy(java.lang.String policy)
the
- name of WS-Trust client policy set for Issue or Validate operation.public java.lang.String getStsBinding()
public void setStsBinding(java.lang.String binding)
binding
- the name of WS-Trust client bindings for WS-Trust's Issue or Validate operation.public java.lang.String getWstNamespace()
public void setWstNamespace(java.lang.String ns)
wstNamespace
- the WS-Trust NameSpace, it is "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.3public java.lang.String getStsSoapVersion()
public void setStsSoapVersion(java.lang.String ns)
version
- the required SOAP version for WS-Trust client, the valid values are 1.1 or 1.2.public java.lang.String getStsBindingScope()
public void setStsBindingScope(java.lang.String scope)
scope
- the binding scope for WS-Trust client, and it is either "domain" or "application".public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> map)
WS-Trust
- RSTT parameterspublic java.lang.String getExchangedTokenType()
public void setExchangedTokenType(java.lang.String type)
public java.lang.String getValidateTarget()
public void setValidateTarget(java.lang.String target)
WS-Trust
- Validate target format.public java.lang.String getIssuer()
public void setIssuer(java.lang.String issuer)
token
- issuer name.public java.lang.String getStsValidatePolicy()
public void setStsValidatePolicy(java.lang.String policy)
the
- name of WS-Trust client policy set for Validate operation.public java.lang.String getStsValidateBinding()
public void setStsValidateBinding(java.lang.String binding)
binding
- the name of WS-Trust client bindings for WS-Trust's Validate operation.public java.lang.String getKeyStoreReference()
public void setKeyStoreReference(java.lang.String keyStoreRef)
keyStoreRef
- string representing the reference name of the keyStore.public java.lang.String getKeyStorePath()
public void setKeyStorePath(java.lang.String keyStorePath)
keyStorePath
- string representing the path to the keyStore.public java.lang.String getKeyStoreType()
public void setKeyStoreType(java.lang.String keyStoreType)
keyStoreType
- string representing the type of the keyStorepublic char[] getKeyStorePassword()
public void setKeyStorePassword(char[] keyStorePassword)
keyStorePassword
- character array that contains the password used to check the integrity or unlock
the keyStore for the consumer of the SAML token.public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
alias
- string representing the alias name.public char[] getKeyPassword()
public void setKeyPassword(char[] keyPassword)
keyPassword
- character array that contains the password for recovering the key.public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName
- string that contains the name of the key.public java.lang.String getConfirmationMethod()
public void setConfirmationMethod(java.lang.String method)
method
- a string identifying the Subject ConfirmationMethod.public boolean enforceConfirmationMethodInTokenExchange()
public void setEnforceConfirmationMethodInTokenExchange(boolean option)
boolean
- public boolean isCollectionRequest()
public void setCollectionRequest(boolean collectionRequest)
public java.util.ArrayList<java.lang.String[]> getTrustedIssuers()
public void setTrustedIssuers(java.util.ArrayList<java.lang.String[]> issuers)