Class UmaValidationService


  • @Named
    public class UmaValidationService
    extends Object
    Version:
    0.9, 04/02/2013
    Author:
    Yuriy Zabrovarnyy
    • Constructor Detail

      • UmaValidationService

        public UmaValidationService()
    • Method Detail

      • validateRPT

        public UmaRPT validateRPT​(String rptCode)
      • validatePermissions

        public void validatePermissions​(List<io.jans.as.model.uma.persistence.UmaPermission> permissions)
      • validatePermission

        public void validatePermission​(io.jans.as.model.uma.persistence.UmaPermission permission)
      • validatePermissions

        public void validatePermissions​(io.jans.as.model.uma.UmaPermissionList permissions,
                                        io.jans.as.common.model.registration.Client client)
      • validatePermission

        public void validatePermission​(io.jans.as.model.uma.UmaPermission permission,
                                       io.jans.as.common.model.registration.Client client)
      • validateGrantType

        public void validateGrantType​(String grantType)
      • validateTicket

        public List<io.jans.as.model.uma.persistence.UmaPermission> validateTicket​(String ticket)
      • validateTicketWithRedirect

        public List<io.jans.as.model.uma.persistence.UmaPermission> validateTicketWithRedirect​(String ticket,
                                                                                               String claimsRedirectUri,
                                                                                               String state)
      • validateClaimToken

        public io.jans.as.model.jwt.Jwt validateClaimToken​(String claimToken,
                                                           String claimTokenFormat)
      • isIdTokenValid

        public boolean isIdTokenValid​(io.jans.as.model.jwt.Jwt idToken)
      • validatePct

        public UmaPCT validatePct​(String pctCode)
      • validateScopes

        public Map<Scope,​Boolean> validateScopes​(String scope,
                                                       List<io.jans.as.model.uma.persistence.UmaPermission> permissions,
                                                       io.jans.as.common.model.registration.Client client)
        Parameters:
        scope - scope string from token request
        permissions - permissions
        Returns:
        map of loaded scope and boolean, true - if client requested scope and false if it is permission ticket scope
      • validateScopeExpression

        public void validateScopeExpression​(String scopeExpression)
      • validateClientAndClaimsRedirectUri

        public io.jans.as.common.model.registration.Client validateClientAndClaimsRedirectUri​(String clientId,
                                                                                              String claimsRedirectUri,
                                                                                              String state)
      • validatesGatheringScriptNames

        public String[] validatesGatheringScriptNames​(String scriptNamesAsString,
                                                      String claimsRedirectUri,
                                                      String state)
      • validateRestrictedByClient

        public void validateRestrictedByClient​(String patClientDn,
                                               String rsId)
      • validateResource

        public void validateResource​(io.jans.as.model.uma.UmaResource resource)
      • validate

        public io.jans.as.common.model.registration.Client validate​(io.jans.as.common.model.registration.Client client)