Package swiss.trustbroker.saml.dto
Class CpResponse.CpResponseBuilder<C extends CpResponse,B extends CpResponse.CpResponseBuilder<C,B>>
java.lang.Object
swiss.trustbroker.saml.dto.ResponseStatus.ResponseStatusBuilder<C,B>
swiss.trustbroker.saml.dto.CpResponse.CpResponseBuilder<C,B>
- Enclosing class:
CpResponse
public abstract static class CpResponse.CpResponseBuilder<C extends CpResponse,B extends CpResponse.CpResponseBuilder<C,B>>
extends ResponseStatus.ResponseStatusBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected B$fillValuesFrom(C instance) additionalIdmData(Map<Object, Object> additionalIdmData) Additional exchanged between related API implementations.applicationName(String applicationName) RP/OIDC context sending 'SAML clientId' in ProviderName.attributes(Map<Definition, List<String>> attributes) The attributes map contains these attributes: CP SAML Response attributes extracted from the message Derived attributes computed in ScriptService BeforeIdm hooks The names in this map are usually fully qualified as represented in the SAML response from the CP.Declared QoA CP side.authStateInstant(String authStateInstant) Issuing instant of authentication statement.abstract Cbuild()The claims map contains these OIDC claims: Everything that was annotated with an oidcName in the configuration. All well known OIDC claims of the openid scope declared in AttributeName (StandardClaims). Everything added or removed in a OIDC OnToken groovy script hook. We use Object values because of nested collection support.clientExtId(String clientExtId) Retrieved IDM primary reference for internal reference.clientName(String clientName) RelyingParty ClientName as used in the IDM credential SAML federation Issuer NameID.contextClasses(List<String> contextClasses) Authentication context classes.customIssuer(String customIssuer) Override RP response issuer.destination(String destination) AuthnRequest.AssertionConsumerUrl from our AuthnRequest.HomeName used by IdmService to query IDM.Contains theIdmLookupfor the corresponding RP.inResponseTo(String inResponseTo) ID of the authentication request that lead to this CP response.CP Response issuer also referred to as HomeRealm.mappedNameId(String mappedNameId) CP Response incoming subject name ID after CP side subject name mapping.Subject name ID.nameIdFormat(String nameIdFormat) Format of the subject name ID.oidcClientId(String oidcClientId) Incoming OIDC client_id.oidcScopes(Set<String> oidcScopes) Incoming OIDC scopes.originalAttributes(Map<Definition, List<String>> originalAttributes) Copy of Attributes before filtering.originalNameId(String originalNameId) CP Response incoming subject name ID used for internal processing.originalPropertiesCount(int originalPropertiesCount) originalUserDetailsCount(int originalUserDetailsCount) properties(Map<Definition, List<String>> properties) Properties contain computed values that can be sent as RP attributes based on incoming CP attributes and userdetails.queriedStores(Set<String> queriedStores) Contains the stores of IDM lookups actually executed by the availableIdmQueryServiceimplementations - including those that did not find a result.results(Map<Definition, List<String>> results) The results map contains these SAML attributes: CP SAML Response attributes extracted from the message (PassThrough Claims from CP) Derived attributes computed in ScriptService BeforeIdm hooks (Computed CP claims) IDM attributes retrieved from the IDMService Derived attributes computed in ScriptService AfterIdm hooks (Computed IDM claims) The names in this map are usually fully qualified as represented in the SAML response from the CP.The HttpServletRequest params, some specific ones: username, Client_NetworkrpContextClasses(List<String> rpContextClasses) Incoming context class requirements on RP side.rpDestination(String rpDestination) Override SAML Response.Destination on RP side.Incoming issuer on RP side.rpRecipient(String rpRecipient) Override SAML SubjectConfirmationData.Recipient on RP side.Incoming HTTP referrer on RP side.protected abstract Bself()subjectConfirmationMethod(String subjectConfirmationMethod) Subject confirmation method.toString()userDetails(Map<Definition, List<String>> userDetails) IDM user data returned from IDM backends, filtered by RP setup.Methods inherited from class swiss.trustbroker.saml.dto.ResponseStatus.ResponseStatusBuilder
featureConditions, flowPolicy, statusCode, statusMessage, statusNestedCode
-
Constructor Details
-
CpResponseBuilder
public CpResponseBuilder()
-
-
Method Details
-
$fillValuesFrom
- Overrides:
$fillValuesFromin classResponseStatus.ResponseStatusBuilder<C extends CpResponse,B extends CpResponse.CpResponseBuilder<C, B>>
-
inResponseTo
ID of the authentication request that lead to this CP response.- Returns:
this.
-
nameId
Subject name ID.- Returns:
this.
-
originalNameId
CP Response incoming subject name ID used for internal processing.- Returns:
this.
-
mappedNameId
CP Response incoming subject name ID after CP side subject name mapping.- Returns:
this.- Since:
- 1.10.0
- See Also:
-
nameIdFormat
Format of the subject name ID.- Returns:
this.
-
subjectConfirmationMethod
Subject confirmation method.- Returns:
this.
-
authStateInstant
Issuing instant of authentication statement.- Returns:
this.
-
contextClasses
Authentication context classes.- Returns:
this.
-
issuer
CP Response issuer also referred to as HomeRealm.- Returns:
this.
-
homeName
HomeName used by IdmService to query IDM.- Returns:
this.
-
destination
AuthnRequest.AssertionConsumerUrl from our AuthnRequest.- Returns:
this.
-
authLevel
Declared QoA CP side.- Returns:
this.
-
rpIssuer
Incoming issuer on RP side.- Returns:
this.
-
rpReferer
Incoming HTTP referrer on RP side.- Returns:
this.
-
rpContextClasses
Incoming context class requirements on RP side.- Returns:
this.
-
rpDestination
Override SAML Response.Destination on RP side.- Returns:
this.
-
rpRecipient
Override SAML SubjectConfirmationData.Recipient on RP side.- Returns:
this.
-
clientExtId
Retrieved IDM primary reference for internal reference.- Returns:
this.
-
clientName
RelyingParty ClientName as used in the IDM credential SAML federation Issuer NameID.- Returns:
this.
-
applicationName
RP/OIDC context sending 'SAML clientId' in ProviderName.- Returns:
this.
-
oidcClientId
Incoming OIDC client_id.- Returns:
this.
-
oidcScopes
Incoming OIDC scopes.- Returns:
this.
-
customIssuer
Override RP response issuer.- Returns:
this.
-
rpContext
The HttpServletRequest params, some specific ones: username, Client_Network- Returns:
this.
-
attributes
The attributes map contains these attributes:- CP SAML Response attributes extracted from the message
- Derived attributes computed in ScriptService BeforeIdm hooks
- Returns:
this.
-
originalAttributes
Copy of Attributes before filtering. Necessary for SSO- Returns:
this.
-
idmLookup
Contains theIdmLookupfor the corresponding RP. The query list can originate from Groovy scripts.- Returns:
this.
-
userDetails
IDM user data returned from IDM backends, filtered by RP setup.- Returns:
this.
-
originalUserDetailsCount
- Returns:
this.
-
properties
Properties contain computed values that can be sent as RP attributes based on incoming CP attributes and userdetails. They are selected by thePropertiesSelectionconfiguration.- Returns:
this.
-
originalPropertiesCount
- Returns:
this.
-
results
The results map contains these SAML attributes:- CP SAML Response attributes extracted from the message (PassThrough Claims from CP)
- Derived attributes computed in ScriptService BeforeIdm hooks (Computed CP claims)
- IDM attributes retrieved from the IDMService
- Derived attributes computed in ScriptService AfterIdm hooks (Computed IDM claims)
- Returns:
this.
-
claims
The claims map contains these OIDC claims:- Everything that was annotated with an oidcName in the configuration.
- All well known OIDC claims of the openid scope declared in AttributeName (StandardClaims).
- Everything added or removed in a OIDC OnToken groovy script hook.
- Returns:
this.
-
additionalIdmData
Additional exchanged between related API implementations.
This data is not persisted.
The map key indicates the source of the value item.- Returns:
this.- See Also:
-
queriedStores
Contains the stores of IDM lookups actually executed by the availableIdmQueryServiceimplementations - including those that did not find a result.- Returns:
this.- Since:
- 1.12.0
- See Also:
-
self
- Specified by:
selfin classResponseStatus.ResponseStatusBuilder<C extends CpResponse,B extends CpResponse.CpResponseBuilder<C, B>>
-
build
- Specified by:
buildin classResponseStatus.ResponseStatusBuilder<C extends CpResponse,B extends CpResponse.CpResponseBuilder<C, B>>
-
toString
- Overrides:
toStringin classResponseStatus.ResponseStatusBuilder<C extends CpResponse,B extends CpResponse.CpResponseBuilder<C, B>>
-