Class OAuth20LoginModule

  • All Implemented Interfaces:
    LoginModule
    Direct Known Subclasses:
    JWTBearerTokenLoginModule, SAMLBearerTokenLoginModule

    public class OAuth20LoginModule
    extends org.picketbox.datasource.security.AbstractPasswordCredentialLoginModule
    Login module to capture OAuth 2.0 profile credential for web service resource-adapter. Users either need to provide all the options or extend this login module to provide all necessary options at runtime.
    • Constructor Detail

      • OAuth20LoginModule

        public OAuth20LoginModule()
    • Method Detail

      • getIdentity

        protected Principal getIdentity()
        Specified by:
        getIdentity in class org.jboss.security.auth.spi.AbstractServerLoginModule
      • getRoleSets

        protected Group[] getRoleSets()
                               throws LoginException
        Specified by:
        getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModule
        Throws:
        LoginException
      • setCredential

        public void setCredential​(OAuthCredential credential)
      • getClientId

        public String getClientId()
      • setClientId

        public void setClientId​(String clientId)
      • getClientSecret

        public String getClientSecret()
      • setClientSecret

        public void setClientSecret​(String clientSecret)
      • getRefreshToken

        public String getRefreshToken()
      • setRefreshToken

        public void setRefreshToken​(String refreshToken)
      • getAccessTokenURI

        public String getAccessTokenURI()
      • setAccessTokenURI

        public void setAccessTokenURI​(String accessTokenURI)
      • getAccessToken

        public String getAccessToken()
      • setAccessToken

        public void setAccessToken​(String accessToken)