Package org.bouncycastle.crypto.tls
Class ServerNameList
- java.lang.Object
-
- org.bouncycastle.crypto.tls.ServerNameList
-
public class ServerNameList extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector
serverNameList
-
Constructor Summary
Constructors Constructor Description ServerNameList(java.util.Vector serverNameList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.OutputStream output)
Encode thisServerNameList
to anOutputStream
.java.util.Vector
getServerNameList()
static ServerNameList
parse(java.io.InputStream input)
Parse aServerNameList
from anInputStream
.
-
-
-
Constructor Detail
-
ServerNameList
public ServerNameList(java.util.Vector serverNameList)
- Parameters:
serverNameList
- aVector
ofServerName
.
-
-
Method Detail
-
getServerNameList
public java.util.Vector getServerNameList()
- Returns:
- a
Vector
ofServerName
.
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Encode thisServerNameList
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static ServerNameList parse(java.io.InputStream input) throws java.io.IOException
Parse aServerNameList
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
ServerNameList
object. - Throws:
java.io.IOException
-
-