Class GrantService

java.lang.Object
org.gluu.oxauth.service.GrantService

@ApplicationScoped public class GrantService extends Object
Version:
November 28, 2018
Author:
Yuriy Zabrovarnyy, Javier Rojas Blum
  • Constructor Details

    • GrantService

      public GrantService()
  • Method Details

    • generateGrantId

      public static String generateGrantId()
    • buildDn

      public String buildDn(String p_hashedToken)
    • merge

      public void merge(TokenLdap p_token)
    • mergeSilently

      public void mergeSilently(TokenLdap p_token)
    • persist

      public void persist(TokenLdap token)
    • remove

      public void remove(TokenLdap p_token)
    • removeSilently

      public void removeSilently(TokenLdap token)
    • remove

      public void remove(List<TokenLdap> p_entries)
    • removeSilently

      public void removeSilently(List<TokenLdap> p_entries)
    • remove

      public void remove(AuthorizationGrant p_grant)
    • getGrantsOfClient

      public List<TokenLdap> getGrantsOfClient(String p_clientId)
    • getGrantByCode

      public TokenLdap getGrantByCode(String p_code)
    • getGrantsByGrantId

      public List<TokenLdap> getGrantsByGrantId(String p_grantId)
    • getGrantsByAuthorizationCode

      public List<TokenLdap> getGrantsByAuthorizationCode(String p_authorizationCode)
    • getGrantsBySessionDn

      public List<TokenLdap> getGrantsBySessionDn(String sessionDn)
    • getCacheTokensEntries

      public List<TokenLdap> getCacheTokensEntries(Set<String> tokenHashes)
    • logout

      public void logout(String sessionDn)
    • removeAllTokensBySession

      public void removeAllTokensBySession(String sessionDn, boolean logout)
    • removeByCode

      public void removeByCode(String p_code)
      Removes grant with particular code.
      Parameters:
      p_code - code
    • removeAuthorizationCode

      public void removeAuthorizationCode(String code)
    • removeAllByAuthorizationCode

      public void removeAllByAuthorizationCode(String p_authorizationCode)
    • removeAllByGrantId

      public void removeAllByGrantId(String p_grantId)