org.bouncycastle.crypto.tls
Class CertificateURL
java.lang.Object
org.bouncycastle.crypto.tls.CertificateURL
public class CertificateURL
- extends java.lang.Object
|
Constructor Summary |
CertificateURL(short type,
java.util.Vector urlAndHashList)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
protected short type
urlAndHashList
protected java.util.Vector urlAndHashList
CertificateURL
public CertificateURL(short type,
java.util.Vector urlAndHashList)
- Parameters:
type - see CertChainType for valid constants.urlAndHashList - a Vector of URLAndHash.
getType
public short getType()
- Returns:
CertChainType
getURLAndHashList
public java.util.Vector getURLAndHashList()
- Returns:
- a
Vector of URLAndHash
encode
public void encode(java.io.OutputStream output)
throws java.io.IOException
- Encode this
CertificateURL to an OutputStream.
- Parameters:
output - the OutputStream to encode to.
- Throws:
java.io.IOException
parse
public static CertificateURL parse(TlsContext context,
java.io.InputStream input)
throws java.io.IOException
- Parse a
CertificateURL from an InputStream.
- Parameters:
context - the TlsContext of the current connection.input - the InputStream to parse from.
- Returns:
- a
CertificateURL object.
- Throws:
java.io.IOException