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.FamilyECElliptic Curve signature (ECDSA) using a SHA-2 hash.static JWSAlgorithm.FamilyEDEdwards Curve signature (EdDSA).static JWSAlgorithm.FamilyHMAC_SHAHMAC using a SHA-2 hash.static JWSAlgorithm.FamilyRSARSA signature (RSASSA-PKCS-v1_5 or RSASSA-PSS) using a SHA-2 hash.static JWSAlgorithm.FamilySIGNATURESuper 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 booleanadd(T alg)booleanaddAll(Collection<? extends T> algs)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(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:
addAllin interfaceCollection<T extends Algorithm>- Specified by:
addAllin interfaceSet<T extends Algorithm>- Overrides:
addAllin classAbstractCollection<T extends Algorithm>
-
remove
public boolean remove(Object o)
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<T extends Algorithm>- Specified by:
removeAllin interfaceSet<T extends Algorithm>- Overrides:
removeAllin classAbstractSet<T extends Algorithm>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<T extends Algorithm>- Specified by:
retainAllin interfaceSet<T extends Algorithm>- Overrides:
retainAllin classAbstractCollection<T extends Algorithm>
-
-