Class JWEAlgorithm.Family

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<JWEAlgorithm>, java.util.Collection<JWEAlgorithm>, java.util.Set<JWEAlgorithm>
    Enclosing class:
    JWEAlgorithm

    public static final class JWEAlgorithm.Family
    extends java.util.LinkedHashSet<T>
    JWE algorithm family.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Family​(JWEAlgorithm... algs)
      Creates a new JWE algorithm family.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(T alg)  
      boolean addAll​(java.util.Collection<? extends T> algs)  
      boolean remove​(java.lang.Object o)  
      boolean removeAll​(java.util.Collection<?> c)  
      boolean retainAll​(java.util.Collection<?> c)  
      • Methods inherited from class java.util.LinkedHashSet

        spliterator
      • Methods inherited from class java.util.HashSet

        clear, clone, contains, isEmpty, iterator, size
      • 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
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        clear, contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray
    • Field Detail

      • ECDH_ES

        public static final JWEAlgorithm.Family ECDH_ES
        Elliptic Curve Diffie-Hellman Ephemeral Static key agreement.
      • ECDH_1PU

        public static final JWEAlgorithm.Family ECDH_1PU
        Public key authenticated encryption with ECDH-1PU.
      • PBES2

        public static final JWEAlgorithm.Family PBES2
        Password-Based Cryptography Specification Version 2.0
      • ASYMMETRIC

        public static final JWEAlgorithm.Family ASYMMETRIC
        Super family of all asymmetric (public / private key based) JWE algorithms.
      • SYMMETRIC

        public static final JWEAlgorithm.Family SYMMETRIC
        Super family of all symmetric (shared key based) JWE algorithms.
    • Constructor Detail

      • Family

        public Family​(JWEAlgorithm... algs)
        Creates a new JWE algorithm family.
        Parameters:
        algs - The JWE algorithms of the family. Must not be null.
    • Method Detail

      • add

        public boolean add​(T alg)
        Specified by:
        add in interface java.util.Collection<T extends Algorithm>
        Specified by:
        add in interface java.util.Set<T extends Algorithm>
        Overrides:
        add in class java.util.HashSet<T extends Algorithm>
      • addAll

        public boolean addAll​(java.util.Collection<? extends T> algs)
        Specified by:
        addAll in interface java.util.Collection<T extends Algorithm>
        Specified by:
        addAll in interface java.util.Set<T extends Algorithm>
        Overrides:
        addAll in class java.util.AbstractCollection<T extends Algorithm>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<T extends Algorithm>
        Specified by:
        remove in interface java.util.Set<T extends Algorithm>
        Overrides:
        remove in class java.util.HashSet<T extends Algorithm>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<T extends Algorithm>
        Specified by:
        removeAll in interface java.util.Set<T extends Algorithm>
        Overrides:
        removeAll in class java.util.AbstractSet<T extends Algorithm>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<T extends Algorithm>
        Specified by:
        retainAll in interface java.util.Set<T extends Algorithm>
        Overrides:
        retainAll in class java.util.AbstractCollection<T extends Algorithm>