public static final class JWSAlgorithm.Family extends LinkedHashSet<T>
Modifier and Type | Field and Description |
---|---|
static JWSAlgorithm.Family |
EC
Elliptic Curve signature (ECDSA) using a SHA-2 hash.
|
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.
|
Constructor and Description |
---|
JWSAlgorithm.Family(JWSAlgorithm... algs)
Creates a new JWS algorithm family.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T alg) |
boolean |
addAll(Collection<? extends T> algs) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
equals, hashCode
containsAll, toArray, toArray, toString
public static final JWSAlgorithm.Family HMAC_SHA
public static final JWSAlgorithm.Family RSA
public static final JWSAlgorithm.Family EC
public JWSAlgorithm.Family(JWSAlgorithm... algs)
algs
- The JWS algorithms of the family. Must not be
null
.public boolean add(T alg)
public boolean addAll(Collection<? extends T> algs)
addAll
in interface Collection<T extends Algorithm>
addAll
in interface Set<T extends Algorithm>
addAll
in class AbstractCollection<T extends Algorithm>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T extends Algorithm>
removeAll
in interface Set<T extends Algorithm>
removeAll
in class AbstractSet<T extends Algorithm>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T extends Algorithm>
retainAll
in interface Set<T extends Algorithm>
retainAll
in class AbstractCollection<T extends Algorithm>
Copyright © 2016 Connect2id Ltd.. All rights reserved.