|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nimbusds.jose.Algorithm
@Immutable public class Algorithm
The base class for algorithm names, with optional implementation requirement. This class is immutable.
Includes constants for the following standard algorithm names:
| Field Summary | |
|---|---|
static Algorithm |
NONE
No algorithm (plain JOSE object without signature / encryption). |
| Constructor Summary | |
|---|---|
Algorithm(String name)
Creates a new JOSE algorithm name. |
|
Algorithm(String name,
Requirement req)
Creates a new JOSE algorithm name. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Overrides Object.equals(). |
String |
getName()
Gets the name of this algorithm. |
Requirement |
getRequirement()
Gets the implementation requirement of this algorithm. |
int |
hashCode()
Overrides Object.hashCode(). |
String |
toJSONString()
Returns the JSON string representation of this algorithm. |
String |
toString()
Returns the string representation of this algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Algorithm NONE
| Constructor Detail |
|---|
public Algorithm(String name,
Requirement req)
name - The algorithm name. Must not be null.req - The implementation requirement, null if not
known.public Algorithm(String name)
name - The algorithm name. Must not be null.| Method Detail |
|---|
public String getName()
public Requirement getRequirement()
null if not known.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 ObjectgetName()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 | |||||||||