Package com.sun.identity.wss.provider
Class STSConfig
- java.lang.Object
-
- com.sun.identity.wss.provider.TrustAuthorityConfig
-
- com.sun.identity.wss.provider.STSConfig
-
- Direct Known Subclasses:
STSAgent
public abstract class STSConfig extends TrustAuthorityConfig
This abstract classSTSConfigrepresents the configuration of a Security Token Service client entity. It extendsTrustAuthorityConfig.This class can be extended to define the trust authority config which is WS-Trust protocol based client (STS client) configuration.
Pluggable implementation of this abstract class can choose to store this configuration in desired configuration store. This pluggable implementation class can be configured in client's AMConfig.properties as value of "com.sun.identity.wss.sts.config.plugin" property for STS client configuration.
All the static methods in this class are for the persistent operations.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringattributeNSprotected StringdnsClaimprotected booleanincludeMembershipsprotected StringkdcDomainprotected StringkdcServerprotected StringkeyTypeprotected StringmexEndpointprotected StringnameIDMapperprotected StringprotocolVersionprotected List<String>requestedClaimsprotected SetsamlAttributesprotected StringservicePrincipalprotected ListsignedElementsprotected StringstsConfigNameprotected StringticketCacheDir-
Fields inherited from class com.sun.identity.wss.provider.TrustAuthorityConfig
customAdminToken, DISCOVERY_TRUST_AUTHORITY, encryptionAlgorithm, encryptionStrength, endpoint, isRequestEncrypted, isRequestHeaderEncrypted, isRequestSigned, isResponseEncrypted, isResponseSigned, name, privateKeyAlias, publicKeyAlias, secMech, signingRefType, STS_TRUST_AUTHORITY, type, usercredentials, WSS_DISCOVERY_CONFIG_PLUGIN, WSS_STS_CONFIG_PLUGIN
-
-
Constructor Summary
Constructors Constructor Description STSConfig()Creates a new instance of STSConfig
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDNSClaim()Returns the DNS claim name.StringgetKDCDomain()Returns Kerberos Domain Controller Domain.StringgetKDCServer()Returns Kerberos Domain Controller Server.StringgetKerberosServicePrincipal()Returns kerberos service principal.StringgetKerberosTicketCacheDir()Returns the kerberos ticket cache directory.StringgetKeyType()Returns the keytype.StringgetMexEndpoint()Returns STS Mex endpoint.StringgetNameIDMapper()Returns the NameID mapper classStringgetProtocolVersion()Returns the protocol version.ListgetRequestedClaims()Returns the list of requested claimsSetgetSAMLAttributeMapping()Returns the SAML Attribute Mapping list.StringgetSAMLAttributeNamespace()Returns SAML attribute namespace.ListgetSignedElements()Returns the list of signed elements.StringgetSTSConfigName()Returns STS configuration name.voidsetDNSClaim(String dnsClaim)Sets the DNS claim namevoidsetIncludeMemberships(boolean include)Sets a flag to include memberships for SAML attribute mapping.voidsetKDCDomain(String domain)Sets Kerberos Domain Controller Domain.voidsetKDCServer(String kdcServer)Sets Kerberos Domain Controller Server.voidsetKerberosServicePrincipal(String principal)Sets kerberos service principal.voidsetKerberosTicketCacheDir(String cacheDir)Sets kerberos ticket cache directory.voidsetKeyType(String keyType)Sets the keytypevoidsetMexEndpoint(String mexEndpoint)Sets STS Mex endpoint.voidsetNameIDMapper(String nameIDMapper)Sets the NameID Mapper class.voidsetProtocolVersion(String version)Sets the protocol version.voidsetRequestedClaims(List requestedClaims)Sets the list of requested claimsvoidsetSAMLAttributeMapping(Set attributeMap)Sets the list of SAML attribute mappings.voidsetSAMLAttributeNamespace(String attributeNS)Sets SAML attribute namespace.voidsetSignedElements(List signedElements)Sets the signed elementsvoidsetSTSConfigName(String stsConfigName)Sets STS configuration name.booleanshouldIncludeMemberships()Checks if the memberships should be included in the SAML attribute mapping.-
Methods inherited from class com.sun.identity.wss.provider.TrustAuthorityConfig
delete, deleteConfig, getConfig, getEncryptionAlgorithm, getEncryptionStrength, getEndpoint, getKeyAlias, getName, getPublicKeyAlias, getSecurityMech, getSigningRefType, getType, getUsers, init, isRequestEncryptEnabled, isRequestHeaderEncryptEnabled, isRequestSignEnabled, isResponseEncryptEnabled, isResponseSignEnabled, saveConfig, setAdminToken, setEncryptionAlgorithm, setEncryptionStrength, setEndpoint, setKeyAlias, setName, setPublicKeyAlias, setRequestEncryptEnabled, setRequestHeaderEncryptEnabled, setRequestSignEnabled, setResponseEncryptEnabled, setResponseSignEnabled, setSecurityMechs, setSigningRefType, setType, setUsers, store
-
-
-
-
Field Detail
-
mexEndpoint
protected String mexEndpoint
-
stsConfigName
protected String stsConfigName
-
kdcDomain
protected String kdcDomain
-
kdcServer
protected String kdcServer
-
ticketCacheDir
protected String ticketCacheDir
-
servicePrincipal
protected String servicePrincipal
-
protocolVersion
protected String protocolVersion
-
samlAttributes
protected Set samlAttributes
-
includeMemberships
protected boolean includeMemberships
-
nameIDMapper
protected String nameIDMapper
-
attributeNS
protected String attributeNS
-
keyType
protected String keyType
-
dnsClaim
protected String dnsClaim
-
signedElements
protected List signedElements
-
-
Method Detail
-
getMexEndpoint
public String getMexEndpoint()
Returns STS Mex endpoint.- Returns:
- STS Mex endpoint
-
setMexEndpoint
public void setMexEndpoint(String mexEndpoint)
Sets STS Mex endpoint.- Parameters:
mexEndpoint- STS Mex endpoint
-
getKeyType
public String getKeyType()
Returns the keytype. Example of keytype are symmetric or asymmetric- Returns:
- the keytype.
-
setKeyType
public void setKeyType(String keyType)
Sets the keytype- Parameters:
keyType-
-
getSTSConfigName
public String getSTSConfigName()
Returns STS configuration name.- Returns:
- STS configuration name
-
setSTSConfigName
public void setSTSConfigName(String stsConfigName)
Sets STS configuration name.- Parameters:
stsConfigName- STS configuration name
-
getKDCDomain
public String getKDCDomain()
Returns Kerberos Domain Controller Domain.- Returns:
- Kerberos Domain Controller Domain
-
setKDCDomain
public void setKDCDomain(String domain)
Sets Kerberos Domain Controller Domain.- Parameters:
domain- Kerberos Domain Controller Domain
-
getKDCServer
public String getKDCServer()
Returns Kerberos Domain Controller Server.- Returns:
- Kerberos Domain Controller Server.
-
setKDCServer
public void setKDCServer(String kdcServer)
Sets Kerberos Domain Controller Server.- Parameters:
kdcServer- Kerberos Domain Controller Server
-
getKerberosTicketCacheDir
public String getKerberosTicketCacheDir()
Returns the kerberos ticket cache directory. This method is used by the web services client to get the kerberos ticket cache directory.- Returns:
- kerberos ticket cache dir
-
setKerberosTicketCacheDir
public void setKerberosTicketCacheDir(String cacheDir)
Sets kerberos ticket cache directory.- Parameters:
cacheDir- kerberos ticket cache dir
-
getKerberosServicePrincipal
public String getKerberosServicePrincipal()
Returns kerberos service principal.- Returns:
- the kerberos service principal
-
setKerberosServicePrincipal
public void setKerberosServicePrincipal(String principal)
Sets kerberos service principal.- Parameters:
principal- the kerberos service principal.
-
getProtocolVersion
public String getProtocolVersion()
Returns the protocol version.- Returns:
- the protocol version
-
setProtocolVersion
public void setProtocolVersion(String version)
Sets the protocol version.- Parameters:
version- the protocol version.
-
getSAMLAttributeMapping
public Set getSAMLAttributeMapping()
Returns the SAML Attribute Mapping list. This method is used by the WSP configuration when enabled for SAML.
-
setSAMLAttributeMapping
public void setSAMLAttributeMapping(Set attributeMap)
Sets the list of SAML attribute mappings. This method is used by the WSP configuration when enabled for SAML.- Parameters:
attributeMap- the list of SAML attribute mapping
-
shouldIncludeMemberships
public boolean shouldIncludeMemberships()
Checks if the memberships should be included in the SAML attribute mapping.- Returns:
- true if the memberships are included.
-
setIncludeMemberships
public void setIncludeMemberships(boolean include)
Sets a flag to include memberships for SAML attribute mapping.- Parameters:
include- boolean flag to indicate if the memberships needs to be included.
-
getNameIDMapper
public String getNameIDMapper()
Returns the NameID mapper class- Returns:
- returns the nameid mapper class.
-
setNameIDMapper
public void setNameIDMapper(String nameIDMapper)
Sets the NameID Mapper class.- Parameters:
nameIDMapper- NameID Mapper class.
-
getSAMLAttributeNamespace
public String getSAMLAttributeNamespace()
Returns SAML attribute namespace.- Returns:
- returns SAML attribute namespace.
-
setSAMLAttributeNamespace
public void setSAMLAttributeNamespace(String attributeNS)
Sets SAML attribute namespace.- Parameters:
attributeNS- SAML attribute namespace.
-
getRequestedClaims
public List getRequestedClaims()
Returns the list of requested claims- Returns:
- the list of requested claims.
-
setRequestedClaims
public void setRequestedClaims(List requestedClaims)
Sets the list of requested claims- Parameters:
requestedClaims- the list of requested claims.
-
getDNSClaim
public String getDNSClaim()
Returns the DNS claim name.- Returns:
- the DNS claim name.
-
setDNSClaim
public void setDNSClaim(String dnsClaim)
Sets the DNS claim name- Parameters:
dnsClaim- the DNS claim name
-
getSignedElements
public List getSignedElements()
Returns the list of signed elements.- Returns:
- the list of signed elements.
-
setSignedElements
public void setSignedElements(List signedElements)
Sets the signed elements- Parameters:
signedElements- the signed elements.
-
-