Interface DestinationConfiguration
public interface DestinationConfiguration
DestinationConfiguration
interface provides read only access to
destination properties.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Issuer of the SAML assertion.static final String
Intended audience of the assertion, which will be verified by the OAuth authorization server.static final String
The destination authentication type.static final String
Value of the AuthnContextClassRef tag, which is part of generated OAuth2SAMLBearerAssertion authentication.static final String
An encoded certificate that is trusted by the SAP system.static final String
The client_id is a public identifier for apps.static final String
Key that identifies the consumer to the authorization server.static final String
The client_secret is a secret known only to the application and the authorization server.static final String
The location ID identifying the cloud connector over which the connection shall be opened.static final String
Company identifier.static final String
Represents the entity tag of the destination.static final String
Optional property.static final String
Client ID to be trusted by the back-end system.static final String
System ID to be trusted by the back-end system.static final String
Represents the application server host to be used.static final String
Represents the client to be used in the ABAP system.static final String
Represents the message server host to be used.static final String
Represents the port on which the message server is listening for incoming requests.static final String
Represents the password of DESTINATION_JCO_CLIENT_USER that shall be used.static final String
Represents the three-character system ID of the ABAP system to be addressed.static final String
Represents the user to be used for logging on to the ABAP system.static final String
Represents the so-called "system number" and has two digits.static final String
Optional property.static final String
Optional property.static final String
Optional property.static final String
The password for the keystore.static final String
The name of the destination.static final String
Value of the NameIdFormat tag, which is part of generated OAuth2SAMLBearerAssertion authentication.static final String
Security domain of the user for which access token will be requested.static final String
The password.static final String
If this property is not set or is set to TRUE (default value), the authentication token is sent preemptively.static final String
The destination proxy type.static final String
Client ID of the back-end system.static final String
System ID of the back-end system.static final String
Key of the destination property that defines the saml2 audience of the issued saml2 response.static final String
The value of the OAuth 2.0 scope parameter expressed as a list of space-delimited, case-sensitive strings.static final String
Optional property.static final String
An encoded private key that is trusted by the SAP system.static final String
Token generation is skipped, if this parameter is set and there is no user logged in, thus allowing anonymous access to public resources.static final String
Optional property.static final String
path to the token service keystore file which contains certificates.static final String
The password for the token service keystore.static final String
Password for DESTINATION_TOKEN_SERVICE_USER property value.static final String
URL of the OAuth server.static final String
User for basic authentication to OAuth server.static final String
The type of the destination.static final String
The base destination URL.static final String
User name.static final String
When this property is set, the generated saml2 assertion uses the currently logged-in user as a value for the NameId tag.static final String
If this property is in the destination then the server certificate will not be checked. -
Method Summary
Modifier and TypeMethodDescriptionReturns all destination properties in read only Map.Returns the keystore configured in the destination.getProperty
(String key) Returns the value of destination property with the specified key.Returns the truststore configured in the destination.
-
Field Details
-
DESTINATION_NAME
The name of the destination. Must be the same as the name of the configuration file. The name must not contain "/" or "\".- See Also:
-
DESTINATION_TYPE
The type of the destination.- See Also:
-
DESTINATION_URL
The base destination URL.- See Also:
-
DESTINATION_PROXY_TYPE
The destination proxy type.- See Also:
-
DESTINATION_AUTHENTICATION_TYPE
The destination authentication type.- See Also:
-
DESTINATION_USER
User name. Valid only for Basic Authentication.- See Also:
-
DESTINATION_PASSWORD
The password. Valid only for Basic Authentication.- See Also:
-
TRUST_ALL
If this property is in the destination then the server certificate will not be checked. THIS SHOULD NOT BE USED IN PRODUCTIVE SCENARIOS.- See Also:
-
DESTINATION_PREEMPTIVE
If this property is not set or is set to TRUE (default value), the authentication token is sent preemptively. Otherwise, it relies on the challenge from the server (401 HTTP code). Valid only for basic authentication.- See Also:
-
DESTINATION_ISSUER_SID
System ID to be trusted by the back-end system. Refers to SAPAssertionSSO authentication type.- See Also:
-
DESTINATION_ISSUER_CLIENT
Client ID to be trusted by the back-end system. Refers to SAPAssertionSSO authentication type.- See Also:
-
DESTINATION_RECIPIENT_SID
System ID of the back-end system. Refers to SAPAssertionSSO authentication type.- See Also:
-
DESTINATION_RECIPIENT_CLIENT
Client ID of the back-end system. Refers to SAPAssertionSSO authentication type.- See Also:
-
DESTINATION_CERTIFICATE
An encoded certificate that is trusted by the SAP system. Refers to SAPAssertionSSO authentication type.- See Also:
-
DESTINATION_SIGNING_KEY
An encoded private key that is trusted by the SAP system. Refers to SAPAssertionSSO authentication type.- See Also:
-
DESTINATION_SAML2_AUDIENCE
Key of the destination property that defines the saml2 audience of the issued saml2 response. This property is relevant of destinations with authentication type AppToAppSSO.- See Also:
-
DESTINATION_AUDIENCE
Intended audience of the assertion, which will be verified by the OAuth authorization server. Refers to OAuth2SAMLBearerAssertion authentication type.- See Also:
-
DESTINATION_CLIENT_KEY
Key that identifies the consumer to the authorization server. Refers to OAuth2SAMLBearerAssertion authentication type.- See Also:
-
DESTINATION_TOKEN_SERVICE_URL
URL of the OAuth server. Refers to OAuth2SAMLBearerAssertion authentication type.- See Also:
-
DESTINATION_TOKEN_SERVICE_USER
User for basic authentication to OAuth server. Refers to OAuth2SAMLBearerAssertion authentication type.- See Also:
-
DESTINATION_TOKEN_SERVICE_PASSWORD
Password for DESTINATION_TOKEN_SERVICE_USER property value. Refers to OAuth2SAMLBearerAssertion authentication type.- See Also:
-
DESTINATION_NAME_QUALIFIER
Security domain of the user for which access token will be requested.- See Also:
-
DESTINATION_COMPANY_ID
Company identifier.- See Also:
-
DESTINATION_ASSERTION_ISSUER
Issuer of the SAML assertion.- See Also:
-
DESTINATION_SCOPE
The value of the OAuth 2.0 scope parameter expressed as a list of space-delimited, case-sensitive strings. Refers to OAuth2SAMLBearerAssertion authentication type.- See Also:
-
DESTINATION_SKIP_SSO_TOKEN_GENERATION_WHEN_NO_USER
Token generation is skipped, if this parameter is set and there is no user logged in, thus allowing anonymous access to public resources. If set, it may have any value. Refers to AppToAppSSO and OAuth2SAMLBearerAssertion authentication type.- See Also:
-
DESTINATION_AUTHN_CONTEXT_CLASS_REF
Value of the AuthnContextClassRef tag, which is part of generated OAuth2SAMLBearerAssertion authentication.- See Also:
-
DESTINATION_NAME_ID_FORMAT
Value of the NameIdFormat tag, which is part of generated OAuth2SAMLBearerAssertion authentication.- See Also:
-
DESTINATION_SYSTEM_USER
Optional property. Signifies whether SAP assertion tickets are generated with specific user ID or sent on behalf of the currently logged user.- See Also:
-
DESTINATION_KEY_STORE_PASSWORD
The password for the keystore.- See Also:
-
DESTINATION_USER_ID_SOURCE
When this property is set, the generated saml2 assertion uses the currently logged-in user as a value for the NameId tag.- See Also:
-
DESTINATION_JCO_CLIENT_CLIENT
Represents the client to be used in the ABAP system. Valid format is a three-digit number.- See Also:
-
DESTINATION_JCO_CLIENT_USER
Represents the user to be used for logging on to the ABAP system.- See Also:
-
DESTINATION_JCO_CLIENT_PASSWD
Represents the password of DESTINATION_JCO_CLIENT_USER that shall be used. Passwords in systems of SAP NetWeaver releases lower than 7.0 are case-insensitive and can be only eight characters long. For releases 7.0 and higher, passwords are case-sensitive with a maximum length of 40.- See Also:
-
DESTINATION_JCO_DESTINATION_REPOSITORY_DESTINATION
Optional property. Specifies which destination should be used for repository queries. If the destination does not exist, an error occurs when trying to retrieve the repository.- See Also:
-
DESTINATION_JCO_DESTINATION_REPOSITORY_USER
Optional property. If this property is set and DESTINATION_JCO_DESTINATION_REPOSITORY_DESTINATION is not set, it will be used as the user for repository queries. This case allows having a different user for repository lookups, and restricting this user's permissions accordingly.- See Also:
-
DESTINATION_JCO_DESTINATION_REPOSITORY_PASSWD
Optional property. Represents the password for DESTINATION_JCO_DESTINATION_REPOSITORY_USER. If such a user is used, this property is mandatory.- See Also:
-
DESTINATION_JCO_CLIENT_ASHOST
Represents the application server host to be used. In the case of configurations in the Cloud, this property needs to match a virtual host entry in the cloud connector Access Control configuration. The existence of this property signals that a direct connection shall be established.- See Also:
-
DESTINATION_JCO_CLIENTSYSNR
Represents the so-called "system number" and has two digits. It identifies the logical port on which the application server is listening for incoming requests. In the case of configurations in the Cloud, this property needs to match a virtual port entry in the cloud connector Access Control configuration.- See Also:
-
DESTINATION_JCO_CLIENT_MSHOST
Represents the message server host to be used. In the case of configurations in the Cloud, this property needs to match a virtual host entry in the cloud connector Access Control configuration. The existence of this property signals that load balancing shall be used for establishing a connection.- See Also:
-
DESTINATION_JCO_CLIENT_R3NAME
Represents the three-character system ID of the ABAP system to be addressed. In the case of configurations in the Cloud, this property needs to match a virtual port entry in the cloud connector Access Control configuration.- See Also:
-
DESTINATION_JCO_CLIENT_MSSERV
Represents the port on which the message server is listening for incoming requests. This property can be used as an alternative to DESTINATION_JCO_CLIENT_R3NAME. In the case of configurations in the Cloud, this property needs to match a virtual port entry in the cloud connector Access Control configuration.- See Also:
-
DESTINATION_SESSION_COOKIE_NAMES
Optional property. Used by the AppToApp authentication module to recognize the user session, resulting in improvement of the performance of the HTTP client. If several cookies are listed, the session is recognized as soon as all of them are available in the response from the server.- See Also:
-
DESTINATION_CLOUDCONNECTOR_LOCATION_ID
The location ID identifying the cloud connector over which the connection shall be opened.- See Also:
-
DESTINATION_HOSTNAME_VERIFIER
Optional property. Used for checking if a hostname matches the names stored inside the server's X.509 certificate. See org.apache.http.conn.ssl.X509HostnameVerifier for more info.- See Also:
-
DESTINATION_CLIENT_ID
The client_id is a public identifier for apps. Even though it’s public, it’s best that it isn’t guessable by third parties, so many implementations use something like a 32-character hex string. It must also be unique across all clients that the authorization server handles. If the client ID is guessable, it makes it slightly easier to craft phishing attacks against arbitrary applications. OAuth2ClientCredentials authentication type- See Also:
-
DESTINATION_CLIENT_SECRET
The client_secret is a secret known only to the application and the authorization server. It must be sufficiently random to not be guessable, which means you should avoid using common UUID libraries which often take into account the timestamp or MAC address of the server generating it. OAuth2ClientCredentials authentication type- See Also:
-
DESTINATION_ETAG
Represents the entity tag of the destination. It is changed each time the destination is being modified, therefore enabling the user to perform destination comparison.- See Also:
-
DESTINATION_TOKEN_SERVICE_KEY_STORE_LOCATION
path to the token service keystore file which contains certificates. Valid with OAuth2ClientCredentials and OAuth2SAMLBearerAssertion Authentications.- See Also:
-
DESTINATION_TOKEN_SERVICE_KEY_STORE_PASSWORD
The password for the token service keystore.- See Also:
-
-
Method Details
-
getProperty
Returns the value of destination property with the specified key.- Parameters:
key
- - Key of destination property.- Returns:
- Value of property or
null
if the property does not exists.
-
getAllProperties
Returns all destination properties in read only Map.- Returns:
- Read only
Map
with all destination properties.
-
getKeyStore
KeyStore getKeyStore()Returns the keystore configured in the destination. For this, a keystore file must have been uploaded before and the destination properties "KeyStoreLocation" and "KeyStorePassword" must be defined in the destination properties.- Returns:
- the keystore of the destination as
KeyStore
ornull
if a keystore is not configured or is missing. - Throws:
IllegalArgumentException
- when properties "KeyStoreLocation" and "KeyStorePassword" are wrong.
-
getTrustStore
KeyStore getTrustStore()Returns the truststore configured in the destination. For this, a truststore file must have been uploaded before and the destination properties "TrustStoreLocation" and "TrustStorePassword" must be defined in the destination properties. Note that the JDK truststore is used by default for a destination if no truststore is explicitly specified or it is merged with the specified truststore.- Returns:
- the truststore as
KeyStore
, the JDK trustore if a truststore is not configured ornull
if a truststore is missing. - Throws:
IllegalArgumentException
- when properties "TrustStoreLocation" and "TrustStorePassword" are wrong.
-