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 String
protected final String
protected final String
protected final String
protected final String
protected final String
Fields 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()
boolean
isCreatedBy
(OAuthAuthenticatingFilter authenticator) void
setPrincipal
(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:
getCredentials
in interfaceorg.apache.shiro.authc.AuthenticationToken
- Overrides:
getCredentials
in classExternalAuthenticationToken
-
getPrincipal
- Specified by:
getPrincipal
in interfaceorg.apache.shiro.authc.AuthenticationToken
- Overrides:
getPrincipal
in classExternalAuthenticationToken
-
getNonce
-
toString
-