Interface JWSHeader

All Known Subinterfaces:
JWEHeader

public interface JWSHeader
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getAlgorithm()
    Returns algorithm (alg ) used to sign the JWS, null if not specified.
    java.lang.String getContentType()
    Returns the content type (cty), null if not specified.
    java.lang.Object getHeader​(java.lang.String name)
    Returns the header value for a given name
    java.net.URI getJWKURL()
    Returns the JSON Web Key (JWK) URL
    java.lang.String getKId()
    Returns the kid (kid), null if not specified.
    java.lang.String getX509CertSHA256Thumbprint()
    Gets the X.509 certificate SHA-256 thumbprint (x5t#S256) parameter.
    java.net.URI getX509CertURL()
    Gets the X.509 certificate URL
    java.lang.String toJSONString()
    Return JSON String representation of header * @since V5.7
  • Method Details

    • getHeader

      java.lang.Object getHeader​(java.lang.String name)
      Returns the header value for a given name
      Parameters:
      name - of the header value
      Returns:
      value of the given header name or null
      Since:
      V5.7
    • getAlgorithm

      java.lang.String getAlgorithm()
      Returns algorithm (alg ) used to sign the JWS, null if not specified.
      Since:
      V5.7
    • getKId

      java.lang.String getKId()
      Returns the kid (kid), null if not specified.
      Since:
      V5.7
    • getContentType

      java.lang.String getContentType()
      Returns the content type (cty), null if not specified.
      Since:
      V5.7
    • toJSONString

      java.lang.String toJSONString()
      Return JSON String representation of header * @since V5.7
    • getJWKURL

      java.net.URI getJWKURL()
      Returns the JSON Web Key (JWK) URL
      Returns:
      Gets the JSON Web Key (JWK) Set URL (jku) parameter, null if not specified.
      Since:
      V5.7
    • getX509CertURL

      java.net.URI getX509CertURL()
      Gets the X.509 certificate URL
      Returns:
      The X.509 certificate URL parameter, (x5u), null if not specified.
      Since:
      V5.7
    • getX509CertSHA256Thumbprint

      java.lang.String getX509CertSHA256Thumbprint()
      Gets the X.509 certificate SHA-256 thumbprint (x5t#S256) parameter.
      Returns:
      The X.509 certificate SHA-256 thumbprint parameter, null if not specified.
      Since:
      V5.7