Class GrantService


  • @Named
    public class GrantService
    extends java.lang.Object
    Version:
    November 28, 2018
    Author:
    Yuriy Zabrovarnyy, Javier Rojas Blum
    • Constructor Detail

      • GrantService

        public GrantService()
    • Method Detail

      • generateGrantId

        public static java.lang.String generateGrantId()
      • buildDn

        public java.lang.String buildDn​(java.lang.String hashedToken)
      • mergeSilently

        public void mergeSilently​(TokenEntity token)
      • removeSilently

        public void removeSilently​(TokenEntity token)
      • remove

        public void remove​(java.util.List<TokenEntity> entries)
      • removeSilently

        public void removeSilently​(java.util.List<TokenEntity> entries)
      • getGrantsOfClient

        public java.util.List<TokenEntity> getGrantsOfClient​(java.lang.String clientId)
      • getGrantByCode

        public TokenEntity getGrantByCode​(java.lang.String code)
      • getGrantsByGrantId

        public java.util.List<TokenEntity> getGrantsByGrantId​(java.lang.String grantId)
      • getGrantsByAuthorizationCode

        public java.util.List<TokenEntity> getGrantsByAuthorizationCode​(java.lang.String authorizationCode)
      • getGrantsBySessionDn

        public java.util.List<TokenEntity> getGrantsBySessionDn​(java.lang.String sessionDn)
      • logout

        public void logout​(java.lang.String sessionDn)
      • removeAllTokensBySession

        public void removeAllTokensBySession​(java.lang.String sessionDn)
      • removeByCode

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

        public void removeAuthorizationCode​(java.lang.String code)
      • removeAllByAuthorizationCode

        public void removeAllByAuthorizationCode​(java.lang.String authorizationCode)
      • removeAllByGrantId

        public void removeAllByGrantId​(java.lang.String grantId)