Package org.gluu.oxauth.uma.service
Class UmaPermissionService
- java.lang.Object
-
- org.gluu.oxauth.uma.service.UmaPermissionService
-
@ApplicationScoped public class UmaPermissionService extends java.lang.Object
Holds permission tokens and permissions- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description UmaPermissionService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBranch(java.lang.String clientDn)
void
addBranchIfNeeded(java.lang.String clientDn)
void
addPermission(UmaPermission permission, java.lang.String clientDn)
java.lang.String
addPermission(UmaPermissionList permissionList, java.lang.String clientDn)
java.lang.String
changeTicket(java.util.List<UmaPermission> permissions, java.util.Map<java.lang.String,java.lang.String> attributes)
boolean
containsBranch(java.lang.String clientDn)
void
deletePermission(java.lang.String ticket)
java.lang.String
generateNewTicket()
static java.lang.String
getBranchDn(java.lang.String clientDn)
static java.lang.String
getDn(java.lang.String clientDn, java.lang.String ticket)
java.util.List<UmaPermission>
getPermissionsByTicket(java.lang.String ticket)
void
merge(UmaPermission permission)
void
mergeSilently(UmaPermission permission)
Pair<java.util.Date,java.lang.Integer>
ticketExpirationDate()
-
-
-
Method Detail
-
getDn
public static java.lang.String getDn(java.lang.String clientDn, java.lang.String ticket)
-
getBranchDn
public static java.lang.String getBranchDn(java.lang.String clientDn)
-
generateNewTicket
public java.lang.String generateNewTicket()
-
addPermission
public java.lang.String addPermission(UmaPermissionList permissionList, java.lang.String clientDn)
-
ticketExpirationDate
public Pair<java.util.Date,java.lang.Integer> ticketExpirationDate()
-
addPermission
public void addPermission(UmaPermission permission, java.lang.String clientDn)
-
merge
public void merge(UmaPermission permission)
-
mergeSilently
public void mergeSilently(UmaPermission permission)
-
getPermissionsByTicket
public java.util.List<UmaPermission> getPermissionsByTicket(java.lang.String ticket)
-
deletePermission
public void deletePermission(java.lang.String ticket)
-
addBranch
public void addBranch(java.lang.String clientDn)
-
addBranchIfNeeded
public void addBranchIfNeeded(java.lang.String clientDn)
-
containsBranch
public boolean containsBranch(java.lang.String clientDn)
-
changeTicket
public java.lang.String changeTicket(java.util.List<UmaPermission> permissions, java.util.Map<java.lang.String,java.lang.String> attributes)
-
-