Package org.bouncycastle.crypto.tls
Class ServerName
- java.lang.Object
-
- org.bouncycastle.crypto.tls.ServerName
-
public class ServerName extends java.lang.ObjectDeprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
-
-
Constructor Summary
Constructors Constructor Description ServerName(short nameType, java.lang.Object name)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidencode(java.io.OutputStream output)Deprecated.Encode thisServerNameto anOutputStream.java.lang.StringgetHostName()Deprecated.java.lang.ObjectgetName()Deprecated.shortgetNameType()Deprecated.protected static booleanisCorrectType(short nameType, java.lang.Object name)Deprecated.static ServerNameparse(java.io.InputStream input)Deprecated.Parse aServerNamefrom anInputStream.
-
-
-
Method Detail
-
getNameType
public short getNameType()
Deprecated.
-
getName
public java.lang.Object getName()
Deprecated.
-
getHostName
public java.lang.String getHostName()
Deprecated.
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionDeprecated.Encode thisServerNameto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static ServerName parse(java.io.InputStream input) throws java.io.IOException
Deprecated.Parse aServerNamefrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
ServerNameobject. - Throws:
java.io.IOException
-
isCorrectType
protected static boolean isCorrectType(short nameType, java.lang.Object name)Deprecated.
-
-