Package io.jans.as.server.auth
Class DpopService
java.lang.Object
io.jans.as.server.auth.DpopService
- Author:
- Yuriy Z
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDpopJwkThumbprint
(String dpopStr) getDPoPJwkThumbprint
(jakarta.servlet.http.HttpServletRequest httpRequest, io.jans.as.common.model.registration.Client client, OAuth2AuditLog oAuth2AuditLog) boolean
validateDpop
(io.jans.as.model.jwt.Jwt dpop) boolean
validateDpop
(String dpop) void
validateDpopThumprint
(String existingThumprint, String requestThumprint) void
validateDpopThumprintIsPresent
(String dpopJkt, String state) void
validateDpopValuesCount
(jakarta.servlet.http.HttpServletRequest servletRequest) void
validateDpopValuesCount
(String[] values)
-
Field Details
-
NO_CACHE
- See Also:
-
PRAGMA
- See Also:
-
DPOP_NONCE
- See Also:
-
DPOP
- See Also:
-
-
Constructor Details
-
DpopService
public DpopService()
-
-
Method Details
-
validateDpopValuesCount
public void validateDpopValuesCount(jakarta.servlet.http.HttpServletRequest servletRequest) -
validateDpopValuesCount
-
validateDpop
-
validateDpop
public boolean validateDpop(io.jans.as.model.jwt.Jwt dpop) -
getDpopJwkThumbprint
public static String getDpopJwkThumbprint(String dpopStr) throws io.jans.as.model.exception.InvalidJwtException, NoSuchAlgorithmException, com.nimbusds.jose.jwk.JWKException, NoSuchProviderException - Throws:
io.jans.as.model.exception.InvalidJwtException
NoSuchAlgorithmException
com.nimbusds.jose.jwk.JWKException
NoSuchProviderException
-
getDPoPJwkThumbprint
public String getDPoPJwkThumbprint(jakarta.servlet.http.HttpServletRequest httpRequest, io.jans.as.common.model.registration.Client client, OAuth2AuditLog oAuth2AuditLog) -
validateDpopThumprintIsPresent
-
validateDpopThumprint
-