Class JwsHeader.Builder

  • All Implemented Interfaces:

    
    public final class JwsHeader.Builder
    
                        

    Builder for JwsHeader.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • JwsHeader.Builder

        JwsHeader.Builder()
    • Method Detail

      • type

         final JwsHeader.Builder type(String typ)

        Sets the typ field of the JWS header.

        Parameters:
        typ - The type of the JWS
        Returns:

        Builder object

      • algorithm

         final JwsHeader.Builder algorithm(String alg)

        Sets the alg field of the JWS header.

        Parameters:
        alg - The algorithm used to sign the JWS
        Returns:

        Builder object

      • keyId

         final JwsHeader.Builder keyId(String kid)

        Sets the kid field of the JWS header.

        Parameters:
        kid - The key ID used to sign the JWS
        Returns:

        Builder object

      • build

         final JwsHeader build()

        Builds the JwsHeader object.

        Returns:

        JwsHeader