Top Fields Constructors Methods
org.keycloak.jose.jwe

public Class JWEHeader

extends Object
implements JOSEHeader
Class Inheritance
All Implemented Interfaces
org.keycloak.jose.JOSEHeader, java.io.Serializable
Annotations
@JsonIgnoreProperties
ignoreUnknown:true
Imports
java.io.IOException, com.fasterxml.jackson.annotation.JsonIgnore, .JsonIgnoreProperties, .JsonInclude, .JsonProperty, com.fasterxml.jackson.databind.ObjectMapper, org.keycloak.jose.JOSEHeader

Author
Marek Posolda

Field Summary

Modifier and TypeField and Description
private String
private String
private String
private String
private String
private static final ObjectMapper
private String

Constructor Summary

AccessConstructor and Description
public
public
JWEHeader(String algorithm, String encryptionAlgorithm, String compressionAlgorithm)

public
JWEHeader(String algorithm, String encryptionAlgorithm, String compressionAlgorithm, String keyId)

public
JWEHeader(String algorithm, String encryptionAlgorithm, String compressionAlgorithm, String keyId, String contentType)

Method Summary

Modifier and TypeMethod and Description
public String
public String
public String
public String
public String
public String
getRawAlgorithm()

Implements org.keycloak.jose.JOSEHeader.getRawAlgorithm.

Returns the algorithm used to sign or encrypt the JWT from the JOSE header.
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

algorithmback to summary
private String algorithm
Annotations
@JsonProperty:alg
compressionAlgorithmback to summary
private String compressionAlgorithm
Annotations
@JsonProperty:zip
contentTypeback to summary
private String contentType
Annotations
@JsonProperty:cty
encryptionAlgorithmback to summary
private String encryptionAlgorithm
Annotations
@JsonProperty:enc
keyIdback to summary
private String keyId
Annotations
@JsonProperty:kid
mapperback to summary
private static final ObjectMapper mapper
typeback to summary
private String type
Annotations
@JsonProperty:typ

Constructor Detail

JWEHeaderback to summary
public JWEHeader()
JWEHeaderback to summary
public JWEHeader(String algorithm, String encryptionAlgorithm, String compressionAlgorithm)
JWEHeaderback to summary
public JWEHeader(String algorithm, String encryptionAlgorithm, String compressionAlgorithm, String keyId)
JWEHeaderback to summary
public JWEHeader(String algorithm, String encryptionAlgorithm, String compressionAlgorithm, String keyId, String contentType)

Method Detail

getAlgorithmback to summary
public String getAlgorithm()
getCompressionAlgorithmback to summary
public String getCompressionAlgorithm()
getContentTypeback to summary
public String getContentType()
getEncryptionAlgorithmback to summary
public String getEncryptionAlgorithm()
getKeyIdback to summary
public String getKeyId()

Implements org.keycloak.jose.JOSEHeader.getKeyId.

getRawAlgorithmback to summary
public String getRawAlgorithm()

Implements org.keycloak.jose.JOSEHeader.getRawAlgorithm.

Doc from org.keycloak.jose.JOSEHeader.getRawAlgorithm.

Returns the algorithm used to sign or encrypt the JWT from the JOSE header.

Returns:String

the algorithm from the JOSE header

Annotations
@JsonIgnore
@Override
getTypeback to summary
public String getType()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.