Class ExtendedKeyUsages


  • public class ExtendedKeyUsages
    extends Object
    Extended Key Usage.
    Since:
    5.4
    Version:
    $Id: 09bbc4d8d95e1d95a019b32f0b045323af103c7f $
    • Constructor Detail

      • ExtendedKeyUsages

        public ExtendedKeyUsages​(String[] usages)
        Constructor from string array.
        Parameters:
        usages - array of usage OID to add.
      • ExtendedKeyUsages

        public ExtendedKeyUsages​(Collection<String> usages)
        Constructor from string array.
        Parameters:
        usages - list of usage OID to add.
    • Method Detail

      • hasUsage

        public boolean hasUsage​(String usage)
        Check if a given usage is authorized.
        Parameters:
        usage - the usage oid to check.
        Returns:
        true if the usage is authorized.
      • getAll

        public Set<String> getAll()
        Returns:
        all extended usage oid.
      • isEmpty

        public boolean isEmpty()
        Returns:
        true if no extended usage has been added.