Package org.bouncycastle.tls
Class CertificateURL
java.lang.Object
org.bouncycastle.tls.CertificateURL
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisCertificateURL
to anOutputStream
.short
getType()
static CertificateURL
parse
(TlsContext context, InputStream input) Parse aCertificateURL
from anInputStream
.
-
Field Details
-
type
protected short type -
urlAndHashList
-
-
Constructor Details
-
CertificateURL
- Parameters:
type
- seeCertChainType
for valid constants.urlAndHashList
- aVector
ofURLAndHash
.
-
-
Method Details
-
getType
public short getType()- Returns:
CertChainType
-
getURLAndHashList
- Returns:
- a
Vector
ofURLAndHash
-
encode
Encode thisCertificateURL
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aCertificateURL
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
CertificateURL
object. - Throws:
IOException
-