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 short
type
protected java.util.Vector
urlAndHashList
-
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 void
encode(java.io.OutputStream output)
Encode thisCertificateURL
to anOutputStream
.short
getType()
java.util.Vector
getURLAndHashList()
static CertificateURL
parse(TlsContext context, java.io.InputStream input)
Parse aCertificateURL
from anInputStream
.
-
-
-
Constructor Detail
-
CertificateURL
public CertificateURL(short type, java.util.Vector urlAndHashList)
- Parameters:
type
- seeCertChainType
for valid constants.urlAndHashList
- aVector
ofURLAndHash
.
-
-
Method Detail
-
getType
public short getType()
- Returns:
CertChainType
-
getURLAndHashList
public java.util.Vector getURLAndHashList()
- Returns:
- a
Vector
ofURLAndHash
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Encode thisCertificateURL
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static CertificateURL parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Parse aCertificateURL
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
CertificateURL
object. - Throws:
java.io.IOException
-
-