public interface AuthenticationHeaderProvider
Modifier and Type | Method and Description |
---|---|
AuthenticationHeader |
getAppToAppSSOHeader(String requestURL)
Generates authentication header for SSO with other applications on the
same landscape.
|
AuthenticationHeader |
getApptoAppSSOHeader(String requestURL,
DestinationConfiguration destinationConfiguration)
Generates authentication header for SSO with other applications or
systems.
|
AuthenticationHeader |
getOAuth2ClientCredentialsHeader(DestinationConfiguration destinationConfiguration)
Generates authentication header for OAuth2ClientCredentials destination.
OAuth access token will be generated for destinations with authentication type OAuth2ClientCredentials in order OAuth-protected resources to be consumed. |
List<AuthenticationHeader> |
getOAuth2SAMLBearerAssertionHeaders(DestinationConfiguration destinationConfiguration)
Generates authentication headers for OAuth2SAMLBearerAssertion
destination.
OAuth access token will be generated for destinations with authentication type OAuth2SAMLBearerAssertion in order OAuth-protected resources to be consumed. |
AuthenticationHeader |
getPrincipalPropagationHeader()
Generates header for principal propagation to on-premise systems.
|
AuthenticationHeader |
getSAPAssertionHeader(DestinationConfiguration destinationConfiguration)
Generates authentication header for SAPAssertionSSO destination.
SAP assertion ticket will be generated for destinations with authentication type SAPAssertionSSO in order to propagate the currently logged on user to a SAP back-end system. |
AuthenticationHeader getAppToAppSSOHeader(String requestURL)
AuthenticationHeader.getName()
.requestURL
- the URL for which the generated headers will be used.IllegalArgumentException
- if there is no logged-in user.IllegalStateException
- if there are problems to get the AppToAppSSOHeader.AuthenticationHeader getApptoAppSSOHeader(String requestURL, DestinationConfiguration destinationConfiguration)
DestinationConfiguration
has an attribute with name
saml2_audience then its value will be set as the audience attribute of
the issued SAML2 assertion. If not then calling this method will have
return the same value as calling getAppToAppSSOHeader(String)
. AuthenticationHeader.getName()
.requestURL
- the URL for which the generated headers will be used.destinationConfiguration
- the destination configuration must be retrieved by
com.sap.core.connectivity.destinations.configuration.
ConfigurationProvider interface.IllegalArgumentException
- if configuration properties are not well configured,
authentication type is not AppToAppSSO or there is no
logged-in user.IllegalStateException
- if there are problems to get the AppToAppSSOHeader.AuthenticationHeader getPrincipalPropagationHeader()
IllegalArgumentException
- if there is no logged-in user.IllegalStateException
- if there are problems to get the PrincipalPropagationHeader.AuthenticationHeader getSAPAssertionHeader(DestinationConfiguration destinationConfiguration)
AuthenticationHeader.getName()
.destinationConfiguration
- the SAPAssertionSSO destination for which an authentication
header will be generated. Must be retrieved by
com.sap.core.connectivity
.destinations.configuration.ConfigurationProvider interface.IllegalArgumentException
- if configuration properties are not well configured,
authentication type is not SAPAssertionSSO or there is no
logged-in user.IllegalStateException
- if there are problems to get the SAPAssertionHeader.List<AuthenticationHeader> getOAuth2SAMLBearerAssertionHeaders(DestinationConfiguration destinationConfiguration)
destinationConfiguration
- the OAuth2SAMLBearerAssertion destination for which
authentication headers will be generated. Must be retrieved by
com.sap.core.connectivity.destinations.configuration.
ConfigurationProvider interface.IllegalArgumentException
- if configuration properties are not well configured,
authentication type is not OAuth2SAMLBearerAssertion or there
is no logged-in user.IllegalStateException
- if there are problems to get the
OAuth2SAMLBearerAssertionHeaders.AuthenticationHeader getOAuth2ClientCredentialsHeader(DestinationConfiguration destinationConfiguration)
destinationConfiguration
- the OAuth2ClientCredentials destination for which
authentication header will be generated. Must be retrieved by
com.sap.core.connectivity.destinations.configuration.
ConfigurationProvider interface.IllegalArgumentException
- if configuration properties are not well configured or
authentication type is not OAuth2ClientCredentials.IllegalStateException
- if there are problems to get the OAuth2ClientCredentials.Copyright © 2021 SAP. All rights reserved.