Package org.apache.harmony.security.x509
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
-
-
Constructor Summary
Constructors Constructor Description GeneralNames()GeneralNames(List<GeneralName> generalNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddName(GeneralName name)voiddumpValue(StringBuilder sb, String prefix)byte[]getEncoded()Returns ASN.1 encoded form of this X.509 GeneralNames value.List<GeneralName>getNames()Returns the list of values.Collection<List<?>>getPairsList()Returns the collection of pairs: (Integer (tag), Object (name value))*
-
-
-
Field Detail
-
ASN1
public static final ASN1Type ASN1
ASN.1 DER X.509 GeneralNames encoder/decoder class.
-
-
Constructor Detail
-
GeneralNames
public GeneralNames()
-
GeneralNames
public GeneralNames(List<GeneralName> generalNames)
-
-
Method Detail
-
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)
-
-