Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class ServerName

java.lang.Object
  extended byorg.bouncycastle.crypto.tls.ServerName

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public class ServerName
extends java.lang.Object


Field Summary
protected  java.lang.Object name
          Deprecated.  
protected  short nameType
          Deprecated.  
 
Constructor Summary
ServerName(short nameType, java.lang.Object name)
          Deprecated.  
 
Method Summary
 void encode(java.io.OutputStream output)
          Deprecated. Encode this ServerName to an OutputStream.
 java.lang.String getHostName()
          Deprecated.  
 java.lang.Object getName()
          Deprecated.  
 short getNameType()
          Deprecated.  
protected static boolean isCorrectType(short nameType, java.lang.Object name)
          Deprecated.  
static ServerName parse(java.io.InputStream input)
          Deprecated. Parse a ServerName from an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameType

protected short nameType
Deprecated. 

name

protected java.lang.Object name
Deprecated. 
Constructor Detail

ServerName

public ServerName(short nameType,
                  java.lang.Object name)
Deprecated. 
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.IOException
Deprecated. 
Encode this ServerName to an OutputStream.

Parameters:
output - the OutputStream to encode to.
Throws:
java.io.IOException

parse

public static ServerName parse(java.io.InputStream input)
                        throws java.io.IOException
Deprecated. 
Parse a ServerName from an InputStream.

Parameters:
input - the InputStream to parse from.
Returns:
a ServerName object.
Throws:
java.io.IOException

isCorrectType

protected static boolean isCorrectType(short nameType,
                                       java.lang.Object name)
Deprecated. 

Bouncy Castle Cryptography Library 1.64