public class CertificateURL extends Object
Modifier and Type | Field and Description |
---|---|
protected short |
type |
protected Vector |
urlAndHashList |
Constructor and Description |
---|
CertificateURL(short type,
Vector urlAndHashList) |
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream output)
Encode this
CertificateURL to an OutputStream . |
short |
getType() |
Vector |
getURLAndHashList() |
static CertificateURL |
parse(TlsContext context,
InputStream input)
Parse a
CertificateURL from an InputStream . |
protected short type
protected Vector urlAndHashList
public CertificateURL(short type, Vector urlAndHashList)
type
- see CertChainType
for valid constants.urlAndHashList
- a Vector
of URLAndHash
.public short getType()
CertChainType
public Vector getURLAndHashList()
Vector
of URLAndHash
public void encode(OutputStream output) throws IOException
CertificateURL
to an OutputStream
.output
- the OutputStream
to encode to.IOException
public static CertificateURL parse(TlsContext context, InputStream input) throws IOException
CertificateURL
from an InputStream
.context
- the TlsContext
of the current connection.input
- the InputStream
to parse from.CertificateURL
object.IOException