Constructor and Description |
---|
AuthTokenFacade() |
Modifier and Type | Method and Description |
---|---|
Optional<AuthToken> |
getCurrentToken()
Returns the current
AuthToken , if present. |
@Nonnull public Optional<AuthToken> getCurrentToken() throws AuthTokenAccessException
AuthToken
, if present. An AuthToken
is not present if no request is available
or the request does not contain an "Authorization" header.Optional
of the current AuthToken
.AuthTokenAccessException
- If there is an issue while trying to access the AuthToken
.Copyright © 2018 SAP SE. All rights reserved.