Package org.bouncycastle.crypto.tls
Class ServerName
- java.lang.Object
-
- org.bouncycastle.crypto.tls.ServerName
-
public class ServerName extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServerName(short nameType, java.lang.Object name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.OutputStream output)
Encode thisServerName
to anOutputStream
.java.lang.String
getHostName()
java.lang.Object
getName()
short
getNameType()
protected static boolean
isCorrectType(short nameType, java.lang.Object name)
static ServerName
parse(java.io.InputStream input)
Parse aServerName
from anInputStream
.
-
-
-
Method Detail
-
getNameType
public short getNameType()
-
getName
public java.lang.Object getName()
-
getHostName
public java.lang.String getHostName()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Encode thisServerName
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static ServerName parse(java.io.InputStream input) throws java.io.IOException
Parse aServerName
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
ServerName
object. - Throws:
java.io.IOException
-
isCorrectType
protected static boolean isCorrectType(short nameType, java.lang.Object name)
-
-