Class AuthorizedApplication
java.lang.Object
swiss.trustbroker.federation.xmlconfig.AuthorizedApplication
- All Implemented Interfaces:
Serializable
This class describes the configuration of an application to be authorized by AccessRequest.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizedApplication(String name, String clientId, String url, String applUrl, Integer minQoa, String mode, Boolean enableTrigger, String triggerRole, String serviceUrl, String recipient, String issuerId, String centralCICD, String endpointReferenceAddress, Boolean validateAssertion, String redirectUrl) Creates a newAuthorizedApplicationinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanIf configured the value is sent as appUrl instead of sending app=name in the INTERACTIVE AccessRequest.Optional request parameter added to URLs.If an RP contains multiple OIDC clients and AccessRequest configurations and the OIDC client_id or the applicationName (provided viy AuthnRequest.ProviderName) does not match the 'name', this attribute can be used to establish the relation.AccessRequest can be triggered by calling application.Overrides the RP ID in requests sent by the AccessRequest.Overrides the global issuer.Matched against minimum QOA from SAML AuthnContextClassRef.getMode()Mode to be used for the AccessRequest, depending on the implementation.getName()Required application name (usually corresponding to IDM).Overrides the global AccessRequest recipientId.URL to be redirected to after AccessRequest.Service URL to be called by AccessRequest.When the given role is missing after the IDM lookup phase (and before the profile selection phase) the access-request handling is initiated.getUrl()The application can be selected via HTTP Referer matching by configuring the Origin URL in this attribute.Validate assertions in responses to requests sent by the AccessRequest.inthashCode()booleanbooleanmatchClientId(String clientId) booleanbooleanmatchUrlAndQoa(String referrer, Optional<Integer> requestMinQoa) booleannoCheckOrEmpty(String referrer, Optional<Integer> requestMinQoa, String clientId, String applicationName) voidsetApplUrl(String applUrl) If configured the value is sent as appUrl instead of sending app=name in the INTERACTIVE AccessRequest.voidsetCentralCICD(String centralCICD) Optional request parameter added to URLs.voidsetClientId(String clientId) If an RP contains multiple OIDC clients and AccessRequest configurations and the OIDC client_id or the applicationName (provided viy AuthnRequest.ProviderName) does not match the 'name', this attribute can be used to establish the relation.voidsetEnableTrigger(Boolean enableTrigger) AccessRequest can be triggered by calling application.voidsetEndpointReferenceAddress(String endpointReferenceAddress) Overrides the RP ID in requests sent by the AccessRequest.voidsetIssuerId(String issuerId) Overrides the global issuer.voidMatched against minimum QOA from SAML AuthnContextClassRef.voidMode to be used for the AccessRequest, depending on the implementation.voidRequired application name (usually corresponding to IDM).voidsetRecipient(String recipient) Overrides the global AccessRequest recipientId.voidsetRedirectUrl(String redirectUrl) URL to be redirected to after AccessRequest.voidsetServiceUrl(String serviceUrl) Service URL to be called by AccessRequest.voidsetTriggerRole(String triggerRole) When the given role is missing after the IDM lookup phase (and before the profile selection phase) the access-request handling is initiated.voidThe application can be selected via HTTP Referer matching by configuring the Origin URL in this attribute.voidsetValidateAssertion(Boolean validateAssertion) Validate assertions in responses to requests sent by the AccessRequest.toString()boolean
-
Constructor Details
-
AuthorizedApplication
public AuthorizedApplication() -
AuthorizedApplication
public AuthorizedApplication(String name, String clientId, String url, String applUrl, Integer minQoa, String mode, Boolean enableTrigger, String triggerRole, String serviceUrl, String recipient, String issuerId, String centralCICD, String endpointReferenceAddress, Boolean validateAssertion, String redirectUrl) Creates a newAuthorizedApplicationinstance.- Parameters:
name- Required application name (usually corresponding to IDM).clientId- If an RP contains multiple OIDC clients and AccessRequest configurations and the OIDC client_id or the applicationName (provided viy AuthnRequest.ProviderName) does not match the 'name', this attribute can be used to establish the relation.url- The application can be selected via HTTP Referer matching by configuring the Origin URL in this attribute.applUrl- If configured the value is sent as appUrl instead of sending app=name in the INTERACTIVE AccessRequest.minQoa- Matched against minimum QOA from SAML AuthnContextClassRef. When an RP has multiple applications, and they cannot be differentiated via HTTP Referer, the minimum AuthnContextClassRef in the AuthnRequest can be used to select the application.
Optional, not recommended.mode- Mode to be used for the AccessRequest, depending on the implementation.enableTrigger- AccessRequest can be triggered by calling application.triggerRole- When the given role is missing after the IDM lookup phase (and before the profile selection phase) the access-request handling is initiated.serviceUrl- Service URL to be called by AccessRequest.recipient- Overrides the global AccessRequest recipientId. Fallback to serviceUrl.issuerId- Overrides the global issuer.centralCICD- Optional request parameter added to URLs.endpointReferenceAddress- Overrides the RP ID in requests sent by the AccessRequest.validateAssertion- Validate assertions in responses to requests sent by the AccessRequest.
Default: falseredirectUrl- URL to be redirected to after AccessRequest.- Since:
- 1.12.0
-
-
Method Details
-
matchUrlAndQoa
- Returns:
- true if referrer and QOA are present and matching if they need to, false if none is required (default application)
-
matchName
-
matchClientId
-
isDefaultApplication
public boolean isDefaultApplication() -
noCheckOrEmpty
public boolean noCheckOrEmpty(String referrer, Optional<Integer> requestMinQoa, String clientId, String applicationName) - Returns:
- true if referrer, QOA, and oidClientId are either missing or do not need to match (if clientId is not set it is a valid default application, even though name could match the input clientId)
-
validateAssertion
public boolean validateAssertion() -
builder
-
getName
Required application name (usually corresponding to IDM). -
getClientId
If an RP contains multiple OIDC clients and AccessRequest configurations and the OIDC client_id or the applicationName (provided viy AuthnRequest.ProviderName) does not match the 'name', this attribute can be used to establish the relation. -
getUrl
The application can be selected via HTTP Referer matching by configuring the Origin URL in this attribute. -
getApplUrl
If configured the value is sent as appUrl instead of sending app=name in the INTERACTIVE AccessRequest.- Since:
- 1.12.0
-
getMinQoa
Matched against minimum QOA from SAML AuthnContextClassRef. When an RP has multiple applications, and they cannot be differentiated via HTTP Referer, the minimum AuthnContextClassRef in the AuthnRequest can be used to select the application.
Optional, not recommended. -
getMode
Mode to be used for the AccessRequest, depending on the implementation. -
getEnableTrigger
AccessRequest can be triggered by calling application. -
getTriggerRole
When the given role is missing after the IDM lookup phase (and before the profile selection phase) the access-request handling is initiated. -
getServiceUrl
Service URL to be called by AccessRequest. -
getRecipient
Overrides the global AccessRequest recipientId. Fallback to serviceUrl. -
getIssuerId
Overrides the global issuer. -
getCentralCICD
Optional request parameter added to URLs. -
getEndpointReferenceAddress
Overrides the RP ID in requests sent by the AccessRequest. -
getValidateAssertion
Validate assertions in responses to requests sent by the AccessRequest.
Default: false -
getRedirectUrl
URL to be redirected to after AccessRequest. -
setName
Required application name (usually corresponding to IDM). -
setClientId
If an RP contains multiple OIDC clients and AccessRequest configurations and the OIDC client_id or the applicationName (provided viy AuthnRequest.ProviderName) does not match the 'name', this attribute can be used to establish the relation. -
setUrl
The application can be selected via HTTP Referer matching by configuring the Origin URL in this attribute. -
setApplUrl
If configured the value is sent as appUrl instead of sending app=name in the INTERACTIVE AccessRequest.- Since:
- 1.12.0
-
setMinQoa
Matched against minimum QOA from SAML AuthnContextClassRef. When an RP has multiple applications, and they cannot be differentiated via HTTP Referer, the minimum AuthnContextClassRef in the AuthnRequest can be used to select the application.
Optional, not recommended. -
setMode
Mode to be used for the AccessRequest, depending on the implementation. -
setEnableTrigger
AccessRequest can be triggered by calling application. -
setTriggerRole
When the given role is missing after the IDM lookup phase (and before the profile selection phase) the access-request handling is initiated. -
setServiceUrl
Service URL to be called by AccessRequest. -
setRecipient
Overrides the global AccessRequest recipientId. Fallback to serviceUrl. -
setIssuerId
Overrides the global issuer. -
setCentralCICD
Optional request parameter added to URLs. -
setEndpointReferenceAddress
Overrides the RP ID in requests sent by the AccessRequest. -
setValidateAssertion
Validate assertions in responses to requests sent by the AccessRequest.
Default: false -
setRedirectUrl
URL to be redirected to after AccessRequest. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-