Class UmaPermissionService


  • @ApplicationScoped
    public class UmaPermissionService
    extends java.lang.Object
    Holds permission tokens and permissions
    Author:
    Yuriy Zabrovarnyy
    • Constructor Detail

      • UmaPermissionService

        public UmaPermissionService()
    • 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)
      • 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)