Class OAuthToken
java.lang.Object
de.businesscode.bcdui.subjectsettings.ExternalAuthenticationToken
de.businesscode.bcdui.subjectsettings.oauth2.OAuthToken
- All Implemented Interfaces:
Serializable,org.apache.shiro.authc.AuthenticationToken
OAuth authentication token which is supported by
OAuthRealm instances. This token carries information about authorization code which is required by a
realm to create access tokens to query the resource server.
If you want to do authorization with JdbcRealm, enable the following in web.xml:
authcStrategy = org.apache.shiro.authc.pam.AtLeastOneSuccessfulStrategy
securityManager.authenticator.authenticationStrategy = $authcStrategy
securityManager.realms = $oauthcMyRealm, $realmBcdJdbc- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final StringFields inherited from class de.businesscode.bcdui.subjectsettings.ExternalAuthenticationToken
principal -
Constructor Summary
ConstructorsConstructorDescriptionOAuthToken(OAuthAuthenticatingFilter authenticator, String clientId, String redirectUri, String authCode, String codeVerifier, String nonce) -
Method Summary
Modifier and TypeMethodDescriptiongetNonce()booleanisCreatedBy(OAuthAuthenticatingFilter authenticator) voidsetPrincipal(Object principal) toString()
-
Field Details
-
authCode
-
codeVerifier
-
clientId
-
redirectUri
-
authenticatorInstanceId
-
nonce
-
-
Constructor Details
-
OAuthToken
-
-
Method Details
-
getClientId
-
isCreatedBy
- Parameters:
authenticator-- Returns:
- true if this token has been created by given authenticator instance
-
getRedirectUri
-
getAuthCode
-
setPrincipal
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.apache.shiro.authc.AuthenticationToken- Overrides:
getCredentialsin classExternalAuthenticationToken
-
getPrincipal
- Specified by:
getPrincipalin interfaceorg.apache.shiro.authc.AuthenticationToken- Overrides:
getPrincipalin classExternalAuthenticationToken
-
getNonce
-
toString
-