Class JWSAlgorithm.Family

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

    public static final class JWSAlgorithm.Family
    extends java.util.LinkedHashSet<T>
    JWS algorithm family.
    See Also:
    Serialized Form
    • 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
      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

      • 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.
      • 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 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>