Class UmaPermissionService


  • @Named
    public class UmaPermissionService
    extends Object
    Holds permission tokens and permissions
    Author:
    Yuriy Zabrovarnyy
    • Constructor Detail

      • UmaPermissionService

        public UmaPermissionService()
    • Method Detail

      • getBranchDn

        public static String getBranchDn​(String clientDn)
      • generateNewTicket

        public String generateNewTicket()
      • addPermission

        public String addPermission​(io.jans.as.model.uma.UmaPermissionList permissionList,
                                    String clientDn)
      • ticketExpirationDate

        public io.jans.as.model.util.Pair<Date,​Integer> ticketExpirationDate()
      • 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)
      • changeTicket

        public String changeTicket​(List<io.jans.as.model.uma.persistence.UmaPermission> permissions,
                                   Map<String,​String> attributes)