Class UmaValidationService


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

      • UmaValidationService

        public UmaValidationService()
    • Method Detail

      • assertHasProtectionScope

        public AuthorizationGrant assertHasProtectionScope​(java.lang.String authorization)
      • validateRPT

        public UmaRPT validateRPT​(java.lang.String rptCode)
      • validatePermissions

        public void validatePermissions​(java.util.List<UmaPermission> permissions)
      • validatePermission

        public void validatePermission​(UmaPermission permission)
      • validatePermission

        public void validatePermission​(UmaPermission permission,
                                       Client client)
      • validateGrantType

        public void validateGrantType​(java.lang.String grantType)
      • validateTicket

        public java.util.List<UmaPermission> validateTicket​(java.lang.String ticket)
      • validateTicketWithRedirect

        public java.util.List<UmaPermission> validateTicketWithRedirect​(java.lang.String ticket,
                                                                        java.lang.String claimsRedirectUri,
                                                                        java.lang.String state)
      • validateClaimToken

        public Jwt validateClaimToken​(java.lang.String claimToken,
                                      java.lang.String claimTokenFormat)
      • isIdTokenValid

        public boolean isIdTokenValid​(Jwt idToken)
      • validatePct

        public UmaPCT validatePct​(java.lang.String pctCode)
      • validateScopes

        public java.util.Map<Scope,​java.lang.Boolean> validateScopes​(java.lang.String scope,
                                                                           java.util.List<UmaPermission> permissions,
                                                                           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​(java.lang.String scopeExpression)
      • validateClientAndClaimsRedirectUri

        public Client validateClientAndClaimsRedirectUri​(java.lang.String clientId,
                                                         java.lang.String claimsRedirectUri,
                                                         java.lang.String state)
      • validatesGatheringScriptNames

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

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

        public void validateResource​(UmaResource resource)