Package io.jans.as.server.uma.service
Class UmaValidationService
- java.lang.Object
-
- io.jans.as.server.uma.service.UmaValidationService
-
@Named public class UmaValidationService extends 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(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(String claimToken, String claimTokenFormat)
io.jans.as.common.model.registration.Client
validateClientAndClaimsRedirectUri(String clientId, String claimsRedirectUri, String state)
void
validateGrantType(String grantType)
UmaPCT
validatePct(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(List<io.jans.as.model.uma.persistence.UmaPermission> permissions)
void
validateResource(io.jans.as.model.uma.UmaResource resource)
void
validateRestrictedByClient(String patClientDn, String rsId)
UmaRPT
validateRPT(String rptCode)
void
validateScopeExpression(String scopeExpression)
Map<Scope,Boolean>
validateScopes(String scope, List<io.jans.as.model.uma.persistence.UmaPermission> permissions, io.jans.as.common.model.registration.Client client)
String[]
validatesGatheringScriptNames(String scriptNamesAsString, String claimsRedirectUri, String state)
List<io.jans.as.model.uma.persistence.UmaPermission>
validateTicket(String ticket)
List<io.jans.as.model.uma.persistence.UmaPermission>
validateTicketWithRedirect(String ticket, String claimsRedirectUri, String state)
-
-
-
Method Detail
-
assertHasProtectionScope
public AuthorizationGrant assertHasProtectionScope(String authorization)
-
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)
-
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 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(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)
-
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)
-
-