|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nimbusds.jose.JOSEObjectType
@Immutable public final class JOSEObjectType
JOSE object type, represents the typ header parameter in plain, 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.
| Field Summary | |
|---|---|
static JOSEObjectType |
JWE
JWE object type. |
static JOSEObjectType |
JWS
JWS object type. |
| Constructor Summary | |
|---|---|
JOSEObjectType(String type)
Creates a new JOSE object type. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Overrides Object.equals(). |
String |
getType()
Gets the JOSE object type. |
int |
hashCode()
Overrides Object.hashCode(). |
String |
toJSONString()
Returns the JSON string representation of this JOSE object type. |
String |
toString()
Returns the string representation of this JOSE object type. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final JOSEObjectType JWS
public static final JOSEObjectType JWE
| Constructor Detail |
|---|
public JOSEObjectType(String type)
type - The object type. Must not be null.| Method Detail |
|---|
public String getType()
public int hashCode()
Object.hashCode().
hashCode in class Objectpublic boolean equals(Object object)
Object.equals().
equals in class Objectobject - The object to compare to.
true if the objects have the same value, otherwise
false.public String toString()
toString in class ObjectgetType()public String toJSONString()
toJSONString in interface net.minidev.json.JSONAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||