Class GeneralNames

java.lang.Object
org.apache.harmony.security.x509.GeneralNames

public final class GeneralNames
extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with the GeneralNames structure which is a part of X.509 certificate (as specified in RFC 3280 - Internet X.509 Public Key Infrastructure. Certificate and Certificate Revocation List (CRL) Profile. http://www.ietf.org/rfc/rfc3280.txt):
   GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
 
See Also:
NameConstraints, GeneralSubtree
  • Field Details

    • ASN1

      public static final ASN1Type ASN1
      ASN.1 DER X.509 GeneralNames encoder/decoder class.
  • Constructor Details

    • GeneralNames

      public GeneralNames()
    • GeneralNames

      public GeneralNames​(List<GeneralName> generalNames)
  • Method Details

    • getNames

      public List<GeneralName> getNames()
      Returns the list of values.
    • getPairsList

      public Collection<List<?>> getPairsList()
      Returns the collection of pairs: (Integer (tag), Object (name value))*
    • addName

      public void addName​(GeneralName name)
    • getEncoded

      public byte[] getEncoded()
      Returns ASN.1 encoded form of this X.509 GeneralNames value.
    • dumpValue

      public void dumpValue​(StringBuilder sb, String prefix)