Class STSInstanceConfig
- java.lang.Object
-
- org.forgerock.openam.sts.config.user.STSInstanceConfig
-
- Direct Known Subclasses:
RestSTSInstanceConfig,SoapSTSInstanceConfig
public class STSInstanceConfig extends Object
Base class encapsulating STS configuration state common to both the REST and SOAP STS. A builder builds this base class, and is invoked by the builders in the REST/SOAP sublcasses. For an explanation of what's going on with the builders in this class and its subclasses, see https://weblogs.java.net/blog/emcmanus/archive/2010/10/25/using-builder-pattern-subclasses Also attempted to marshal the RestSTSInstanceConfig to/from json with the jackson ObjectMapper. But I was adding@JsonSerializeand@JsonDeserializeannotations, and because builder-based classes don't expose ctors which take the complete field set, I would have to create@JsonCreatorinstances which would have to pull all of the values out of a map anyway, which is 75% of the way towards a hand-rolled json marshalling implementation based on json-fluent. So a hand-rolled implementation it is. See toJson and fromJson methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSTSInstanceConfig.STSInstanceConfigBuilderstatic classSTSInstanceConfig.STSInstanceConfigBuilderBase<T extends STSInstanceConfig.STSInstanceConfigBuilderBase<T>>
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEPLOYMENT_CONFIGprotected static StringOIDC_ID_TOKEN_CONFIGprotected OpenIdConnectTokenConfigopenIdConnectTokenConfigprotected static StringPERSIST_ISSUED_TOKENS_IN_CTSprotected booleanpersistIssuedTokensInCTSprotected static StringSAML2_CONFIGprotected SAML2Configsaml2Config
-
Constructor Summary
Constructors Modifier Constructor Description protectedSTSInstanceConfig(STSInstanceConfig.STSInstanceConfigBuilderBase<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static STSInstanceConfig.STSInstanceConfigBuilderBase<?>builder()booleanequals(Object other)static STSInstanceConfigfromJson(org.forgerock.json.JsonValue json)OpenIdConnectTokenConfiggetOpenIdConnectTokenConfig()SAML2ConfiggetSaml2Config()static STSInstanceConfigmarshalFromAttributeMap(Map<String,Set<String>> attributeMap)Map<String,Set<String>>marshalToAttributeMap()booleanpersistIssuedTokensInCTS()org.forgerock.json.JsonValuetoJson()StringtoString()
-
-
-
Field Detail
-
SAML2_CONFIG
protected static final String SAML2_CONFIG
- See Also:
- Constant Field Values
-
OIDC_ID_TOKEN_CONFIG
protected static final String OIDC_ID_TOKEN_CONFIG
- See Also:
- Constant Field Values
-
DEPLOYMENT_CONFIG
protected static final String DEPLOYMENT_CONFIG
- See Also:
- Constant Field Values
-
PERSIST_ISSUED_TOKENS_IN_CTS
protected static final String PERSIST_ISSUED_TOKENS_IN_CTS
- See Also:
- Constant Field Values
-
saml2Config
protected final SAML2Config saml2Config
-
openIdConnectTokenConfig
protected final OpenIdConnectTokenConfig openIdConnectTokenConfig
-
persistIssuedTokensInCTS
protected final boolean persistIssuedTokensInCTS
-
-
Constructor Detail
-
STSInstanceConfig
protected STSInstanceConfig(STSInstanceConfig.STSInstanceConfigBuilderBase<?> builder)
-
-
Method Detail
-
getSaml2Config
public SAML2Config getSaml2Config()
- Returns:
- The SAML2Config object which specifies the state necessary for STS-instance-specific SAML2 assertions to be generated. This state is used by the token generation service.
-
getOpenIdConnectTokenConfig
public OpenIdConnectTokenConfig getOpenIdConnectTokenConfig()
-
persistIssuedTokensInCTS
public boolean persistIssuedTokensInCTS()
-
builder
public static STSInstanceConfig.STSInstanceConfigBuilderBase<?> builder()
-
toJson
public org.forgerock.json.JsonValue toJson()
-
fromJson
public static STSInstanceConfig fromJson(org.forgerock.json.JsonValue json)
-
marshalFromAttributeMap
public static STSInstanceConfig marshalFromAttributeMap(Map<String,Set<String>> attributeMap)
-
-