Constructor and Description |
---|
AuthTokenAccessor() |
Modifier and Type | Method and Description |
---|---|
static AuthTokenFacade |
getAuthTokenFacade() |
static com.google.common.base.Optional<AuthToken> |
getCurrentToken()
Returns the current
AuthToken , if present. |
static void |
setAuthTokenFacade(AuthTokenFacade authTokenFacade)
Replaces the default
AuthTokenFacade instance. |
@Nonnull public static AuthTokenFacade getAuthTokenFacade()
AuthTokenFacade
instance. This method is for internal use only.public static void setAuthTokenFacade(@NonNull AuthTokenFacade authTokenFacade)
AuthTokenFacade
instance. This method is for internal use only.@Nonnull public static com.google.common.base.Optional<AuthToken> getCurrentToken() throws AuthTokenAccessException
AuthToken
, if present.Optional
of the current AuthToken
.AuthTokenAccessException
- If there is an issue while trying to access the AuthToken
.Copyright © 2018 SAP SE. All rights reserved.