Package com.nimbusds.jose
Class EncryptionMethod.Family
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<T>
-
- com.nimbusds.jose.EncryptionMethod.Family
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<EncryptionMethod>
,Collection<EncryptionMethod>
,Set<EncryptionMethod>
- Enclosing class:
- EncryptionMethod
public static final class EncryptionMethod.Family extends LinkedHashSet<T>
Encryption method family.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EncryptionMethod.Family
AES_CBC_HMAC_SHA
AES/CBC/HMAC with SHA-2.static EncryptionMethod.Family
AES_GCM
AES/GCM.
-
Constructor Summary
Constructors Constructor Description Family(EncryptionMethod... encs)
Creates a new encryption method 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
-
AES_CBC_HMAC_SHA
public static final EncryptionMethod.Family AES_CBC_HMAC_SHA
AES/CBC/HMAC with SHA-2.
-
AES_GCM
public static final EncryptionMethod.Family AES_GCM
AES/GCM.
-
-
Constructor Detail
-
Family
public Family(EncryptionMethod... encs)
Creates a new encryption method family.- Parameters:
encs
- The encryption methods 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>
-
-