Package com.nimbusds.oauth2.sdk.dpop
Interface DPoPProofFactory
- All Known Implementing Classes:
DefaultDPoPProofFactory
public interface DPoPProofFactory
DPoP proof JWT factory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe minimal required JWT ID (jti) length, 12 bytes (96 bits).static final com.nimbusds.jose.JOSEObjectTypeThe DPoP JWT (typ) type. -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.jwt.SignedJWTcreateDPoPJWT(JWTID jti, String htm, URI htu, Date iat, AccessToken accessToken) Deprecated.com.nimbusds.jwt.SignedJWTcreateDPoPJWT(JWTID jti, String htm, URI htu, Date iat, AccessToken accessToken, Nonce nonce) Creates a new DPoP proof.com.nimbusds.jwt.SignedJWTcreateDPoPJWT(String htm, URI htu) Creates a new DPoP proof.com.nimbusds.jwt.SignedJWTcreateDPoPJWT(String htm, URI htu, AccessToken accessToken) Creates a new DPoP proof.com.nimbusds.jwt.SignedJWTcreateDPoPJWT(String htm, URI htu, AccessToken accessToken, Nonce nonce) Creates a new DPoP proof.com.nimbusds.jwt.SignedJWTcreateDPoPJWT(String htm, URI htu, Nonce nonce) Creates a new DPoP proof.
-
Field Details
-
TYPE
The DPoP JWT (typ) type. -
MINIMAL_JTI_BYTE_LENGTH
The minimal required JWT ID (jti) length, 12 bytes (96 bits).- See Also:
-
-
Method Details
-
createDPoPJWT
com.nimbusds.jwt.SignedJWT createDPoPJWT(String htm, URI htu) throws com.nimbusds.jose.JOSEException Creates a new DPoP proof.- Parameters:
htm- The HTTP request method. Must not benull.htu- The HTTP URI, without a query or fragment. Must not benull.- Returns:
- The signed DPoP JWT.
- Throws:
com.nimbusds.jose.JOSEException- If signing failed.
-
createDPoPJWT
com.nimbusds.jwt.SignedJWT createDPoPJWT(String htm, URI htu, Nonce nonce) throws com.nimbusds.jose.JOSEException Creates a new DPoP proof.- Parameters:
htm- The HTTP request method. Must not benull.htu- The HTTP URI, without a query or fragment. Must not benull.nonce- The nonce,nullif not specified.- Returns:
- The signed DPoP JWT.
- Throws:
com.nimbusds.jose.JOSEException- If signing failed.
-
createDPoPJWT
com.nimbusds.jwt.SignedJWT createDPoPJWT(String htm, URI htu, AccessToken accessToken) throws com.nimbusds.jose.JOSEException Creates a new DPoP proof.- Parameters:
htm- The HTTP request method. Must not benull.htu- The HTTP URI, without a query or fragment. Must not benull.accessToken- The access token for the access token hash ("ath") claim computation,nullif not specified.- Returns:
- The signed DPoP JWT.
- Throws:
com.nimbusds.jose.JOSEException- If signing failed.
-
createDPoPJWT
com.nimbusds.jwt.SignedJWT createDPoPJWT(String htm, URI htu, AccessToken accessToken, Nonce nonce) throws com.nimbusds.jose.JOSEException Creates a new DPoP proof.- Parameters:
htm- The HTTP request method. Must not benull.htu- The HTTP URI, without a query or fragment. Must not benull.accessToken- The access token for the access token hash ("ath") claim computation,nullif not specified.nonce- The nonce,nullif not specified.- Returns:
- The signed DPoP JWT.
- Throws:
com.nimbusds.jose.JOSEException- If signing failed.
-
createDPoPJWT
@Deprecated com.nimbusds.jwt.SignedJWT createDPoPJWT(JWTID jti, String htm, URI htu, Date iat, AccessToken accessToken) throws com.nimbusds.jose.JOSEException Deprecated.Creates a new DPoP proof.- Parameters:
jti- The JWT ID. Must not benull.htm- The HTTP request method. Must not benull.htu- The HTTP URI, without a query or fragment. Must not benull.iat- The issue time. Must not benull.accessToken- The access token for the access token hash ("ath") claim computation,nullif not specified.- Returns:
- The signed DPoP JWT.
- Throws:
com.nimbusds.jose.JOSEException- If signing failed.
-
createDPoPJWT
com.nimbusds.jwt.SignedJWT createDPoPJWT(JWTID jti, String htm, URI htu, Date iat, AccessToken accessToken, Nonce nonce) throws com.nimbusds.jose.JOSEException Creates a new DPoP proof.- Parameters:
jti- The JWT ID. Must not benull.htm- The HTTP request method. Must not benull.htu- The HTTP URI, without a query or fragment. Must not benull.iat- The issue time. Must not benull.accessToken- The access token for the access token hash ("ath") claim computation,nullif not specified.nonce- The nonce,nullif not specified.- Returns:
- The signed DPoP JWT.
- Throws:
com.nimbusds.jose.JOSEException- If signing failed.
-