Interface DPoPProofFactory

    • Field Detail

      • TYPE

        static final com.nimbusds.jose.JOSEObjectType TYPE
        The DPoP JWT (typ) type.
    • Method Detail

      • 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 be null.
        htu - The HTTP URI, without a query or fragment. Must not be null.
        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 be null.
        htu - The HTTP URI, without a query or fragment. Must not be null.
        accessToken - The access token for the access token hash ("ath") claim computation, null if 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)
                                          throws com.nimbusds.jose.JOSEException
        Creates a new DPoP proof.
        Parameters:
        jti - The JWT ID. Must not be null.
        htm - The HTTP request method. Must not be null.
        htu - The HTTP URI, without a query or fragment. Must not be null.
        iat - The issue time. Must not be null.
        accessToken - The access token for the access token hash ("ath") claim computation, null if not specified.
        Returns:
        The signed DPoP JWT.
        Throws:
        com.nimbusds.jose.JOSEException - If signing failed.