Package io.jans.as.server.uma.service
Class UmaPermissionService
- java.lang.Object
-
- io.jans.as.server.uma.service.UmaPermissionService
-
@Named 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(io.jans.as.model.uma.persistence.UmaPermission permission, java.lang.String clientDn)
java.lang.String
addPermission(io.jans.as.model.uma.UmaPermissionList permissionList, java.lang.String clientDn)
java.lang.String
changeTicket(java.util.List<io.jans.as.model.uma.persistence.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<io.jans.as.model.uma.persistence.UmaPermission>
getPermissionsByTicket(java.lang.String ticket)
void
merge(io.jans.as.model.uma.persistence.UmaPermission permission)
void
mergeSilently(io.jans.as.model.uma.persistence.UmaPermission permission)
io.jans.as.model.util.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(io.jans.as.model.uma.UmaPermissionList permissionList, java.lang.String clientDn)
-
ticketExpirationDate
public io.jans.as.model.util.Pair<java.util.Date,java.lang.Integer> ticketExpirationDate()
-
addPermission
public void addPermission(io.jans.as.model.uma.persistence.UmaPermission permission, java.lang.String clientDn)
-
merge
public void merge(io.jans.as.model.uma.persistence.UmaPermission permission)
-
mergeSilently
public void mergeSilently(io.jans.as.model.uma.persistence.UmaPermission permission)
-
getPermissionsByTicket
public java.util.List<io.jans.as.model.uma.persistence.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<io.jans.as.model.uma.persistence.UmaPermission> permissions, java.util.Map<java.lang.String,java.lang.String> attributes)
-
-