Package com.nimbusds.jose
Class JWSAlgorithm.Family
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<T>
-
- com.nimbusds.jose.JWSAlgorithm.Family
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<JWSAlgorithm>
,Collection<JWSAlgorithm>
,Set<JWSAlgorithm>
- Enclosing class:
- JWSAlgorithm
public static final class JWSAlgorithm.Family extends LinkedHashSet<T>
JWS algorithm family.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static JWSAlgorithm.Family
EC
Elliptic Curve signature (ECDSA) using a SHA-2 hash.static JWSAlgorithm.Family
ED
Edwards Curve signature (EdDSA).static JWSAlgorithm.Family
HMAC_SHA
HMAC using a SHA-2 hash.static JWSAlgorithm.Family
RSA
RSA signature (RSASSA-PKCS-v1_5 or RSASSA-PSS) using a SHA-2 hash.static JWSAlgorithm.Family
SIGNATURE
Super family of all digital signature based JWS algorithms.
-
Constructor Summary
Constructors Constructor Description Family(JWSAlgorithm... algs)
Creates a new JWS algorithm family.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T alg)
boolean
addAll(Collection<? extends T> algs)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
-
Methods inherited from class java.util.LinkedHashSet
spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
containsAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Field Detail
-
HMAC_SHA
public static final JWSAlgorithm.Family HMAC_SHA
HMAC using a SHA-2 hash.
-
RSA
public static final JWSAlgorithm.Family RSA
RSA signature (RSASSA-PKCS-v1_5 or RSASSA-PSS) using a SHA-2 hash.
-
EC
public static final JWSAlgorithm.Family EC
Elliptic Curve signature (ECDSA) using a SHA-2 hash.
-
ED
public static final JWSAlgorithm.Family ED
Edwards Curve signature (EdDSA).
-
SIGNATURE
public static final JWSAlgorithm.Family SIGNATURE
Super family of all digital signature based JWS algorithms.
-
-
Constructor Detail
-
Family
public Family(JWSAlgorithm... algs)
Creates a new JWS algorithm family.- Parameters:
algs
- The JWS algorithms of the family. Must not benull
.
-
-
Method Detail
-
add
public boolean add(T alg)
-
addAll
public boolean addAll(Collection<? extends T> algs)
- Specified by:
addAll
in interfaceCollection<T extends Algorithm>
- Specified by:
addAll
in interfaceSet<T extends Algorithm>
- Overrides:
addAll
in classAbstractCollection<T extends Algorithm>
-
remove
public boolean remove(Object o)
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<T extends Algorithm>
- Specified by:
removeAll
in interfaceSet<T extends Algorithm>
- Overrides:
removeAll
in classAbstractSet<T extends Algorithm>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<T extends Algorithm>
- Specified by:
retainAll
in interfaceSet<T extends Algorithm>
- Overrides:
retainAll
in classAbstractCollection<T extends Algorithm>
-
-