Package org.keycloak.jose.jws
Class JWSHeader
java.lang.Object
org.keycloak.jose.jws.JWSHeader
- All Implemented Interfaces:
Serializable,JOSEHeader
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddX5c(Certificate x5c) getKey()getKeyId()This is a map of any other claims and data that might be in the header.Returns the algorithm used to sign or encrypt the JWT from the JOSE header.getType()getX5c()voidsetAlgorithm(Algorithm algorithm) voidsetContentType(String contentType) voidvoidvoidsetOtherClaims(String name, Object value) voidvoidtoString()
-
Constructor Details
-
JWSHeader
public JWSHeader() -
JWSHeader
-
JWSHeader
-
-
Method Details
-
getAlgorithm
-
setAlgorithm
-
getRawAlgorithm
Description copied from interface:JOSEHeaderReturns the algorithm used to sign or encrypt the JWT from the JOSE header.- Specified by:
getRawAlgorithmin interfaceJOSEHeader- Returns:
- the algorithm from the JOSE header
-
getType
-
setType
-
getContentType
-
setContentType
-
getKeyId
- Specified by:
getKeyIdin interfaceJOSEHeader
-
setKeyId
-
getKey
-
setKey
-
getX5c
-
setX5c
-
addX5c
-
addX5c
-
getOtherClaims
This is a map of any other claims and data that might be in the header. Could be custom claims set up by a custom implementation or the auth server -
setOtherClaims
-
toString
-