Package io.jans.as.server.auth
Class DpopService
- java.lang.Object
-
- io.jans.as.server.auth.DpopService
-
@Named public class DpopService extends Object
- Author:
- Yuriy Z
-
-
Constructor Summary
Constructors Constructor Description DpopService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDpopJwkThumbprint(String dpopStr)
String
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 Detail
-
NO_CACHE
public static final String NO_CACHE
- See Also:
- Constant Field Values
-
PRAGMA
public static final String PRAGMA
- See Also:
- Constant Field Values
-
DPOP_NONCE
public static final String DPOP_NONCE
- See Also:
- Constant Field Values
-
DPOP
public static final String DPOP
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateDpopValuesCount
public void validateDpopValuesCount(jakarta.servlet.http.HttpServletRequest servletRequest)
-
validateDpopValuesCount
public void validateDpopValuesCount(String[] values)
-
validateDpop
public boolean validateDpop(String dpop)
-
validateDpop
public boolean validateDpop(io.jans.as.model.jwt.Jwt dpop)
-
getDpopJwkThumbprint
public 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
public void validateDpopThumprintIsPresent(String dpopJkt, String state)
-
-