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 desitnation)
Generates authentication header for SSO with other applications or systems.
|
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.AuthenticationHeader getApptoAppSSOHeader(String requestURL, DestinationConfiguration desitnation)
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.desitnation
- the destination configurationAuthenticationHeader getPrincipalPropagationHeader()
AuthenticationHeader getSAPAssertionHeader(DestinationConfiguration destinationConfiguration)
AuthenticationHeader.getName()
.destinationConfiguration
- the SAPAssertionSSO destination for which an authentication header will be generated.IllegalArgumentException
- when configuration properties are not well configured or authentication type is not SAPAssertionSSO.List<AuthenticationHeader> getOAuth2SAMLBearerAssertionHeaders(DestinationConfiguration destinationConfiguration)
destinationConfiguration
- the OAuth2SAMLBearerAssertion destination for which authentication headers will be generated.IllegalArgumentException
- when configuration properties are not well configured or authentication type is not
OAuth2SAMLBearerAssertion.Copyright © 2016 SAP. All Rights Reserved.