Package com.nimbusds.jose
Class JOSEObjectType
java.lang.Object
com.nimbusds.jose.JOSEObjectType
- All Implemented Interfaces:
Serializable
JOSE object type, represents the
typ
header parameter in unsecured,
JSON Web Signature (JWS) and JSON Web Encryption (JWE) objects. This class
is immutable.
Includes constants for the following standard types:
Additional types can be defined using the constructor.
- Version:
- 2024-04-20
- Author:
- Vladimir Dzhuvinov
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JOSEObjectType
Compact encoded JOSE object type.static final JOSEObjectType
JSON-encoded JOSE object type.static final JOSEObjectType
JSON Web Token (JWT) object type. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JOSE
Compact encoded JOSE object type. -
JOSE_JSON
JSON-encoded JOSE object type. -
JWT
JSON Web Token (JWT) object type.
-
-
Constructor Details
-
JOSEObjectType
Creates a new JOSE object type.- Parameters:
type
- The object type. Must not benull
.
-
-
Method Details
-
getType
Gets the JOSE object type.- Returns:
- The JOSE object type.
-
hashCode
OverridesObject.hashCode()
. -
equals
OverridesObject.equals()
. -
toString
Returns the string representation of this JOSE object type. -
toJSONString
Returns the JSON string representation of this JOSE object type.- Returns:
- The JSON string representation.
-