Class OctetSequenceSignedJwt

java.lang.Object
org.forgerock.json.jose.jws.SignedJwt
org.forgerock.openig.fapi.jwt.OctetSequenceSignedJwt
All Implemented Interfaces:
Jwt, Payload

public class OctetSequenceSignedJwt extends SignedJwt
Extension of SignedJwt supporting octet-sequence payloads represented by a OctetSequencePayload.
  • Constructor Details

    • OctetSequenceSignedJwt

      protected OctetSequenceSignedJwt(OctetSequenceSignedJwt signedJwt)
      Construct an OctetSequenceSignedJwt from an existent one.
      Parameters:
      signedJwt - the signed JWT
    • OctetSequenceSignedJwt

      public OctetSequenceSignedJwt(JwsHeader header, OctetSequencePayload nestedPayload, SigningHandler signingHandler)
      Constructs a fresh, new OctetSequenceSignedJwt from the given JwsHeader and nested Encrypted JWT.

      The specified private key will be used in the creation of the JWS signature.

      Parameters:
      header - The JwsHeader containing the header parameters of the JWS.
      nestedPayload - The nested OctetSequencePayload that will be the payload of this JWS.
      signingHandler - The SigningHandler instance used to sign the JWS.
    • OctetSequenceSignedJwt

      public OctetSequenceSignedJwt(JwsHeader header, OctetSequencePayload nestedPayload, byte[] signingInput, byte[] signature)
      Constructs a reconstructed OctetSequenceSignedJwt from its constituent parts, the JwsHeader, nested Encrypted JWT, signing input and signature.

      For use when a signed nested encrypted JWT has been reconstructed from its base64url encoded string representation and the signature needs verifying.

      Parameters:
      header - The JwsHeader containing the header parameters of the JWS.
      nestedPayload - The nested OctetSequencePayload that is the payload of the JWS.
      signingInput - The original data that was signed, being the base64url encoding of the JWS header and payload concatenated using a "." character.
      signature - The resulting signature of signing the signing input.
  • Method Details