Package org.apache.oltu.oauth2.jwt
Class Header
- java.lang.Object
-
- org.apache.oltu.commons.json.CustomizableEntity
-
- org.apache.oltu.oauth2.jwt.Header
-
public final class Header extends CustomizableEntity
Represents the Header as defined in the 6.1 section of the JWT specification.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
Returns thealg
JWT Header parameter.String
getContentType()
Returns thecty
JWT Header parameter.String
getType()
Returns thetyp
JWT Header parameter.String
toString()
-
Methods inherited from class org.apache.oltu.commons.json.CustomizableEntity
getCustomField, getCustomFields
-
-
-
-
Method Detail
-
getType
public String getType()
Returns thetyp
JWT Header parameter.- Returns:
- the
typ
JWT Header parameter.
-
getAlgorithm
public String getAlgorithm()
Returns thealg
JWT Header parameter.- Returns:
- the
alg
JWT Header parameter.
-
getContentType
public String getContentType()
Returns thecty
JWT Header parameter.- Returns:
- the
cty
JWT Header parameter.
-
toString
public String toString()
- Overrides:
toString
in classCustomizableEntity
-
-