Package io.jans.as.server.token.ws.rs
Class TokenRestWebServiceValidator
- java.lang.Object
-
- io.jans.as.server.token.ws.rs.TokenRestWebServiceValidator
-
@Named public class TokenRestWebServiceValidator extends java.lang.Object
- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description TokenRestWebServiceValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response.ResponseBuilder
error(int status, io.jans.as.model.token.TokenErrorResponseType type, java.lang.String reason)
void
validateActorToken(java.lang.String actorToken, OAuth2AuditLog auditLog)
void
validateActorTokenType(java.lang.String actorTokenType, OAuth2AuditLog auditLog)
void
validateAudience(java.lang.String audience, OAuth2AuditLog auditLog)
@NotNull io.jans.as.common.model.registration.Client
validateClient(io.jans.as.common.model.registration.Client client, OAuth2AuditLog auditLog)
void
validateDeviceAuthorization(io.jans.as.common.model.registration.Client client, java.lang.String deviceCode, DeviceAuthorizationCacheControl cacheData, OAuth2AuditLog oAuth2AuditLog)
void
validateGrant(AuthorizationGrant grant, io.jans.as.common.model.registration.Client client, java.lang.Object identifier, OAuth2AuditLog auditLog)
void
validateGrant(AuthorizationGrant grant, io.jans.as.common.model.registration.Client client, java.lang.Object identifier, OAuth2AuditLog auditLog, java.util.function.Consumer<AuthorizationGrant> onFailure)
void
validateGrantType(io.jans.as.model.common.GrantType requestedGrantType, io.jans.as.common.model.registration.Client client, OAuth2AuditLog auditLog)
static boolean
validateParams(java.lang.String clientId, java.lang.String clientSecret)
void
validateParams(java.lang.String grantType, java.lang.String code, java.lang.String redirectUri, java.lang.String refreshToken, OAuth2AuditLog auditLog)
void
validateRefreshToken(RefreshToken refreshTokenObject, OAuth2AuditLog auditLog)
void
validateSessionForTokenExchange(io.jans.as.common.model.session.SessionId session, java.lang.String actorToken, OAuth2AuditLog auditLog)
void
validateSubjectToken(java.lang.String deviceSecret, java.lang.String subjectToken, io.jans.as.common.model.session.SessionId sidSession, OAuth2AuditLog auditLog)
void
validateSubjectTokenType(java.lang.String subjectTokenType, OAuth2AuditLog auditLog)
void
validateUser(io.jans.as.common.model.common.User user, OAuth2AuditLog auditLog)
-
-
-
Method Detail
-
validateParams
public void validateParams(java.lang.String grantType, java.lang.String code, java.lang.String redirectUri, java.lang.String refreshToken, OAuth2AuditLog auditLog)
-
validateParams
public static boolean validateParams(java.lang.String clientId, java.lang.String clientSecret)
-
validateGrantType
public void validateGrantType(io.jans.as.model.common.GrantType requestedGrantType, io.jans.as.common.model.registration.Client client, OAuth2AuditLog auditLog)
-
error
public jakarta.ws.rs.core.Response.ResponseBuilder error(int status, io.jans.as.model.token.TokenErrorResponseType type, java.lang.String reason)
-
validateClient
@NotNull public @NotNull io.jans.as.common.model.registration.Client validateClient(io.jans.as.common.model.registration.Client client, OAuth2AuditLog auditLog)
-
validateDeviceAuthorization
public void validateDeviceAuthorization(io.jans.as.common.model.registration.Client client, java.lang.String deviceCode, DeviceAuthorizationCacheControl cacheData, OAuth2AuditLog oAuth2AuditLog)
-
validateGrant
public void validateGrant(AuthorizationGrant grant, io.jans.as.common.model.registration.Client client, java.lang.Object identifier, OAuth2AuditLog auditLog)
-
validateGrant
public void validateGrant(AuthorizationGrant grant, io.jans.as.common.model.registration.Client client, java.lang.Object identifier, OAuth2AuditLog auditLog, java.util.function.Consumer<AuthorizationGrant> onFailure)
-
validateRefreshToken
public void validateRefreshToken(RefreshToken refreshTokenObject, OAuth2AuditLog auditLog)
-
validateUser
public void validateUser(io.jans.as.common.model.common.User user, OAuth2AuditLog auditLog)
-
validateSubjectTokenType
public void validateSubjectTokenType(java.lang.String subjectTokenType, OAuth2AuditLog auditLog)
-
validateActorTokenType
public void validateActorTokenType(java.lang.String actorTokenType, OAuth2AuditLog auditLog)
-
validateActorToken
public void validateActorToken(java.lang.String actorToken, OAuth2AuditLog auditLog)
-
validateSessionForTokenExchange
public void validateSessionForTokenExchange(io.jans.as.common.model.session.SessionId session, java.lang.String actorToken, OAuth2AuditLog auditLog)
-
validateSubjectToken
public void validateSubjectToken(java.lang.String deviceSecret, java.lang.String subjectToken, io.jans.as.common.model.session.SessionId sidSession, OAuth2AuditLog auditLog)
-
validateAudience
public void validateAudience(java.lang.String audience, OAuth2AuditLog auditLog)
-
-