Package com.nimbusds.oauth2.sdk.dpop
Interface DPoPJWTFactory
-
- All Known Implementing Classes:
DefaultDPoPJWTFactory
public interface DPoPJWTFactory
DPoP JWT factory.
-
-
Field Summary
Fields Modifier and Type Field Description static int
MINIMAL_JTI_BYTE_LENGTH
The minimal required JWT ID (jti) length, 12 bytes (96 bits).static com.nimbusds.jose.JOSEObjectType
TYPE
The DPoP JWT (typ) type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.nimbusds.jwt.SignedJWT
createDPoPJWT(JWTID jti, String htm, URI htu, Date iat)
Creates a new DPoP JWT.com.nimbusds.jwt.SignedJWT
createDPoPJWT(String htm, URI htu)
Creates a new DPoP JWT.
-
-
-
Field Detail
-
TYPE
static final com.nimbusds.jose.JOSEObjectType TYPE
The DPoP JWT (typ) type.
-
MINIMAL_JTI_BYTE_LENGTH
static final int MINIMAL_JTI_BYTE_LENGTH
The minimal required JWT ID (jti) length, 12 bytes (96 bits).- See Also:
- Constant Field Values
-
-
Method Detail
-
createDPoPJWT
com.nimbusds.jwt.SignedJWT createDPoPJWT(String htm, URI htu) throws com.nimbusds.jose.JOSEException
Creates a new DPoP JWT.- 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(JWTID jti, String htm, URI htu, Date iat) throws com.nimbusds.jose.JOSEException
Creates a new DPoP JWT.- 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
.- Returns:
- The signed DPoP JWT.
- Throws:
com.nimbusds.jose.JOSEException
- If signing failed.
-
-