public static class AuthTokenBuilder.FluentHelperUnsignedJwt extends Object
Constructor and Description |
---|
FluentHelperUnsignedJwt() |
Modifier and Type | Method and Description |
---|---|
AuthTokenBuilder.FluentHelperBuild |
ofTenant(String tenantId,
String subdomain)
A non-validated JWT is constructed based on tenant information (
xsappname and issuer URL of
subscriber in VCAP_SERVICES environment variable). |
AuthTokenBuilder.FluentHelperBuild |
ofTenant(String tenantId,
URI issuerUri,
Collection<String> audiences)
A non-validated JWT is constructed based on tenant information.
|
@Nonnull public AuthTokenBuilder.FluentHelperBuild ofTenant(@Nonnull String tenantId, @Nonnull String subdomain) throws CloudPlatformException
xsappname
and issuer URL of
subscriber in VCAP_SERVICES
environment variable). This artificial JWT can be used in the
execute
methods of AuthTokenAccessor
so that operations in this context are executed on
behalf of the subscriber tenant provided. The generated JWT contains default values for issuer URL and
audience.tenantId
- The tenant identifier to be used and acted on behalf of.1subdomain
- The subdomain of the tenant to act on behalf of.CloudPlatformException
- If there is an issue retrieving the required tenant information.@Nonnull public AuthTokenBuilder.FluentHelperBuild ofTenant(@Nonnull String tenantId, @Nonnull URI issuerUri, @Nonnull Collection<String> audiences)
execute
methods of AuthTokenAccessor
so that operations in this context are executed on
behalf of the subscriber tenant provided.tenantId
- The tenant identifier to be used and acted on behalf of.issuerUri
- The issuer URL of the subscriber XSUAA endpoint.audiences
- A customizable array of JWT audience entries. Adding the application name is recommended.Copyright © 2021 SAP SE. All rights reserved.