Package org.bouncycastle.tls
Class CertificateURL
java.lang.Object
org.bouncycastle.tls.CertificateURL
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream output) Encode thisCertificateURLto anOutputStream.shortgetType()static CertificateURLparse(TlsContext context, InputStream input) Parse aCertificateURLfrom anInputStream.
-
Field Details
-
type
protected short type -
urlAndHashList
-
-
Constructor Details
-
CertificateURL
- Parameters:
type- seeCertChainTypefor valid constants.urlAndHashList- aVectorofURLAndHash.
-
-
Method Details
-
getType
public short getType()- Returns:
CertChainType
-
getURLAndHashList
- Returns:
- a
VectorofURLAndHash
-
encode
Encode thisCertificateURLto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
IOException
-
parse
Parse aCertificateURLfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
CertificateURLobject. - Throws:
IOException
-