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
JWS algorithm family.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JWSAlgorithm.Family
Elliptic Curve signature (ECDSA) using a SHA-2 hash.static final JWSAlgorithm.Family
Edwards Curve signature (EdDSA).static final JWSAlgorithm.Family
HMAC using a SHA-2 hash.static final JWSAlgorithm.Family
RSA signature (RSASSA-PKCS-v1_5 or RSASSA-PSS) using a SHA-2 hash.static final JWSAlgorithm.Family
Super family of all digital signature based JWS algorithms. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(JWSAlgorithm alg) boolean
addAll
(Collection<? extends JWSAlgorithm> algs) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) Methods inherited from class java.util.LinkedHashSet
spliterator
Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, size, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
containsAll, 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 Details
-
HMAC_SHA
HMAC using a SHA-2 hash. -
RSA
RSA signature (RSASSA-PKCS-v1_5 or RSASSA-PSS) using a SHA-2 hash. -
EC
Elliptic Curve signature (ECDSA) using a SHA-2 hash. -
ED
Edwards Curve signature (EdDSA). -
SIGNATURE
Super family of all digital signature based JWS algorithms.
-
-
Constructor Details
-
Family
Creates a new JWS algorithm family.- Parameters:
algs
- The JWS algorithms of the family. Must not benull
.
-
-
Method Details
-
add
-
addAll
- Specified by:
addAll
in interfaceCollection<T extends Algorithm>
- Specified by:
addAll
in interfaceSet<T extends Algorithm>
- Overrides:
addAll
in classAbstractCollection<T extends Algorithm>
-
remove
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T extends Algorithm>
- Specified by:
removeAll
in interfaceSet<T extends Algorithm>
- Overrides:
removeAll
in classAbstractSet<T extends Algorithm>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T extends Algorithm>
- Specified by:
retainAll
in interfaceSet<T extends Algorithm>
- Overrides:
retainAll
in classAbstractCollection<T extends Algorithm>
-