Package io.jans.as.server.uma.service
Class UmaPermissionService
- java.lang.Object
-
- io.jans.as.server.uma.service.UmaPermissionService
-
@Named public class UmaPermissionService extends 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(String clientDn)
void
addBranchIfNeeded(String clientDn)
void
addPermission(io.jans.as.model.uma.persistence.UmaPermission permission, String clientDn)
String
addPermission(io.jans.as.model.uma.UmaPermissionList permissionList, String clientDn)
String
changeTicket(List<io.jans.as.model.uma.persistence.UmaPermission> permissions, Map<String,String> attributes)
boolean
containsBranch(String clientDn)
void
deletePermission(String ticket)
String
generateNewTicket()
static String
getBranchDn(String clientDn)
static String
getDn(String clientDn, String ticket)
List<io.jans.as.model.uma.persistence.UmaPermission>
getPermissionsByTicket(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<Date,Integer>
ticketExpirationDate()
-
-
-
Method Detail
-
generateNewTicket
public String generateNewTicket()
-
addPermission
public String addPermission(io.jans.as.model.uma.UmaPermissionList permissionList, String clientDn)
-
addPermission
public void addPermission(io.jans.as.model.uma.persistence.UmaPermission permission, 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 List<io.jans.as.model.uma.persistence.UmaPermission> getPermissionsByTicket(String ticket)
-
deletePermission
public void deletePermission(String ticket)
-
addBranch
public void addBranch(String clientDn)
-
addBranchIfNeeded
public void addBranchIfNeeded(String clientDn)
-
containsBranch
public boolean containsBranch(String clientDn)
-
-