Package io.jans.as.server.uma.service
Class UmaValidationService
- java.lang.Object
-
- io.jans.as.server.uma.service.UmaValidationService
-
@Named 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(io.jans.as.model.jwt.Jwt idToken)
io.jans.as.common.model.registration.Client
validate(io.jans.as.common.model.registration.Client client)
io.jans.as.model.jwt.Jwt
validateClaimToken(java.lang.String claimToken, java.lang.String claimTokenFormat)
io.jans.as.common.model.registration.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(io.jans.as.model.uma.persistence.UmaPermission permission)
void
validatePermission(io.jans.as.model.uma.UmaPermission permission, io.jans.as.common.model.registration.Client client)
void
validatePermissions(io.jans.as.model.uma.UmaPermissionList permissions, io.jans.as.common.model.registration.Client client)
void
validatePermissions(java.util.List<io.jans.as.model.uma.persistence.UmaPermission> permissions)
void
validateResource(io.jans.as.model.uma.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<io.jans.as.model.uma.persistence.UmaPermission> permissions, io.jans.as.common.model.registration.Client client)
java.lang.String[]
validatesGatheringScriptNames(java.lang.String scriptNamesAsString, java.lang.String claimsRedirectUri, java.lang.String state)
java.util.List<io.jans.as.model.uma.persistence.UmaPermission>
validateTicket(java.lang.String ticket)
java.util.List<io.jans.as.model.uma.persistence.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<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(java.lang.String grantType)
-
validateTicket
public java.util.List<io.jans.as.model.uma.persistence.UmaPermission> validateTicket(java.lang.String ticket)
-
validateTicketWithRedirect
public java.util.List<io.jans.as.model.uma.persistence.UmaPermission> validateTicketWithRedirect(java.lang.String ticket, java.lang.String claimsRedirectUri, java.lang.String state)
-
validateClaimToken
public io.jans.as.model.jwt.Jwt validateClaimToken(java.lang.String claimToken, java.lang.String claimTokenFormat)
-
isIdTokenValid
public boolean isIdTokenValid(io.jans.as.model.jwt.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<io.jans.as.model.uma.persistence.UmaPermission> permissions, io.jans.as.common.model.registration.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 io.jans.as.common.model.registration.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(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)
-
-