Package org.gluu.oxauth.uma.service
Class UmaValidationService
- java.lang.Object
-
- org.gluu.oxauth.uma.service.UmaValidationService
-
@ApplicationScoped public class UmaValidationService extends java.lang.Object
- Version:
- 0.9, 04/02/2013
- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description UmaValidationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationGrant
assertHasProtectionScope(java.lang.String authorization)
boolean
isIdTokenValid(Jwt idToken)
Client
validate(Client client)
Jwt
validateClaimToken(java.lang.String claimToken, java.lang.String claimTokenFormat)
Client
validateClientAndClaimsRedirectUri(java.lang.String clientId, java.lang.String claimsRedirectUri, java.lang.String state)
void
validateGrantType(java.lang.String grantType)
UmaPCT
validatePct(java.lang.String pctCode)
void
validatePermission(UmaPermission permission)
void
validatePermission(UmaPermission permission, Client client)
void
validatePermissions(java.util.List<UmaPermission> permissions)
void
validatePermissions(UmaPermissionList permissions, Client client)
void
validateResource(UmaResource resource)
void
validateRestrictedByClient(java.lang.String patClientDn, java.lang.String rsId)
UmaRPT
validateRPT(java.lang.String rptCode)
void
validateScopeExpression(java.lang.String scopeExpression)
java.util.Map<Scope,java.lang.Boolean>
validateScopes(java.lang.String scope, java.util.List<UmaPermission> permissions, Client client)
java.lang.String[]
validatesGatheringScriptNames(java.lang.String scriptNamesAsString, java.lang.String claimsRedirectUri, java.lang.String state)
java.util.List<UmaPermission>
validateTicket(java.lang.String ticket)
java.util.List<UmaPermission>
validateTicketWithRedirect(java.lang.String ticket, java.lang.String claimsRedirectUri, java.lang.String state)
-
-
-
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)
-
validatePermissions
public void validatePermissions(UmaPermissionList permissions, Client client)
-
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 requestpermissions
- 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)
-
-