Package org.bouncycastle.tls
Class CertificateURL
- java.lang.Object
-
- org.bouncycastle.tls.CertificateURL
-
public class CertificateURL extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected shorttypeprotected java.util.VectorurlAndHashList
-
Constructor Summary
Constructors Constructor Description CertificateURL(short type, java.util.Vector urlAndHashList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream output)Encode thisCertificateURLto anOutputStream.shortgetType()java.util.VectorgetURLAndHashList()static CertificateURLparse(TlsContext context, java.io.InputStream input)Parse aCertificateURLfrom anInputStream.
-
-
-
Constructor Detail
-
CertificateURL
public CertificateURL(short type, java.util.Vector urlAndHashList)- Parameters:
type- seeCertChainTypefor valid constants.urlAndHashList- aVectorofURLAndHash.
-
-
Method Detail
-
getType
public short getType()
- Returns:
CertChainType
-
getURLAndHashList
public java.util.Vector getURLAndHashList()
- Returns:
- a
VectorofURLAndHash
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionEncode thisCertificateURLto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static CertificateURL parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Parse aCertificateURLfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
CertificateURLobject. - Throws:
java.io.IOException
-
-