Package io.jans.as.server.service
Class GrantService
- java.lang.Object
-
- io.jans.as.server.service.GrantService
-
@Named public class GrantService extends Object
- Version:
- November 28, 2018
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description GrantService()
-
Method Summary
-
-
-
Method Detail
-
generateGrantId
public static String generateGrantId()
-
merge
public void merge(TokenEntity token)
-
mergeSilently
public void mergeSilently(TokenEntity token)
-
persist
public void persist(TokenEntity token)
-
remove
public void remove(TokenEntity token)
-
removeSilently
public void removeSilently(TokenEntity token)
-
remove
public void remove(List<TokenEntity> entries)
-
removeSilently
public void removeSilently(List<TokenEntity> entries)
-
remove
public void remove(AuthorizationGrant grant)
-
getGrantsOfClient
public List<TokenEntity> getGrantsOfClient(String clientId)
-
getGrantByCode
public TokenEntity getGrantByCode(String code)
-
getGrantsByGrantId
public List<TokenEntity> getGrantsByGrantId(String grantId)
-
getGrantsByAuthorizationCode
public List<TokenEntity> getGrantsByAuthorizationCode(String authorizationCode)
-
getGrantsBySessionDn
public List<TokenEntity> getGrantsBySessionDn(String sessionDn)
-
logout
public void logout(String sessionDn)
-
filterOutRefreshTokenFromDeletion
public void filterOutRefreshTokenFromDeletion(List<TokenEntity> tokens)
-
removeAllTokensBySession
public void removeAllTokensBySession(String sessionDn)
-
removeByCode
public void removeByCode(String code)
Removes grant with particular code.- Parameters:
code
- code
-
removeAuthorizationCode
public void removeAuthorizationCode(String code)
-
removeAllByAuthorizationCode
public void removeAllByAuthorizationCode(String authorizationCode)
-
removeAllByGrantId
public void removeAllByGrantId(String grantId)
-
-