net.jradius.client.auth
Class EAPTLS2Authenticator

java.lang.Object
  extended by net.jradius.client.auth.RadiusAuthenticator
      extended by net.jradius.client.auth.EAPAuthenticator
          extended by net.jradius.client.auth.EAPTLS2Authenticator
Direct Known Subclasses:
PEAPAuthenticator

public class EAPTLS2Authenticator
extends net.jradius.client.auth.EAPAuthenticator

EAP-TLS Authentication (and TLS Tunnel support).

Author:
David Bird

Field Summary
protected  int eapFragmentedOffset
           
protected  byte[] eapFragmentedReply
           
static java.lang.String NAME
           
protected static int TLS_APP_DATA
           
protected static int TLS_CLIENT_HELLO
           
protected static short TLS_HAS_LENGTH
           
protected static short TLS_MORE_FRAGMENTS
           
protected static int TLS_SERVER_HELLO
           
protected static short TLS_START
           
 
Fields inherited from class net.jradius.client.auth.EAPAuthenticator
EAP_AKA, EAP_CISCO_MSCHAPV2, EAP_FAILURE, EAP_GTC, EAP_HEADERLEN, EAP_IDENTITY, EAP_LEAP, EAP_MD5, EAP_MSCHAPV2, EAP_NAK, EAP_NOTIFICATION, EAP_OTP, EAP_PEAP, EAP_REQUEST, EAP_RESPONSE, EAP_SIM, EAP_SUCCESS, EAP_TLS, EAP_TLV, EAP_TTLS, peap
 
Fields inherited from class net.jradius.client.auth.RadiusAuthenticator
client, password, username
 
Constructor Summary
EAPTLS2Authenticator()
           
 
Method Summary
 byte[] doEAPType(byte id, byte[] data)
           
protected  void doTunnelAuthentication(byte id, byte[] in)
           
protected  byte[] getAppBuffer()
           
 java.lang.String getAuthName()
           
 java.lang.String getCaFile()
           
 java.lang.String getCaFileType()
           
 java.lang.String getCaPassword()
           
 java.lang.String getKeyFile()
           
 java.lang.String getKeyFileType()
           
 java.lang.String getKeyPassword()
           
 java.lang.Boolean getTrustAll()
           
protected  void init()
          Initializs the SSL layer.
protected  byte[] nextFragment()
           
 void putAppBuffer(byte[] b)
           
 void setCaFile(java.lang.String caFile)
           
 void setCaFileType(java.lang.String caFileType)
           
 void setCaPassword(java.lang.String caPassword)
           
 void setKeyFile(java.lang.String keyFile)
           
 void setKeyFileType(java.lang.String keyFileType)
           
 void setKeyPassword(java.lang.String keyPassword)
           
 void setTrustAll(java.lang.Boolean trustAll)
           
 void setupRequest(net.jradius.client.RadiusClient c, net.jradius.packet.RadiusPacket p)
           
protected  byte[] tlsResponse(byte flags, byte[] data)
           
 
Methods inherited from class net.jradius.client.auth.EAPAuthenticator
doEAP, doEAPType, eapResponse, getEAPType, isStartWithIdentity, negotiateEAPType, processChallenge, processRequest, setEAPType, setStartWithIdentity, tlvSuccess
 
Methods inherited from class net.jradius.client.auth.RadiusAuthenticator
getClient, getPassword, getUsername, setClient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

TLS_START

protected static final short TLS_START
See Also:
Constant Field Values

TLS_MORE_FRAGMENTS

protected static final short TLS_MORE_FRAGMENTS
See Also:
Constant Field Values

TLS_HAS_LENGTH

protected static final short TLS_HAS_LENGTH
See Also:
Constant Field Values

TLS_CLIENT_HELLO

protected static final int TLS_CLIENT_HELLO
See Also:
Constant Field Values

TLS_SERVER_HELLO

protected static final int TLS_SERVER_HELLO
See Also:
Constant Field Values

TLS_APP_DATA

protected static final int TLS_APP_DATA
See Also:
Constant Field Values

eapFragmentedReply

protected byte[] eapFragmentedReply

eapFragmentedOffset

protected int eapFragmentedOffset
Constructor Detail

EAPTLS2Authenticator

public EAPTLS2Authenticator()
Method Detail

setupRequest

public void setupRequest(net.jradius.client.RadiusClient c,
                         net.jradius.packet.RadiusPacket p)
                  throws net.jradius.exception.RadiusException
Overrides:
setupRequest in class net.jradius.client.auth.RadiusAuthenticator
Throws:
net.jradius.exception.RadiusException

init

protected void init()
             throws net.jradius.exception.RadiusException
Initializs the SSL layer.

Throws:
net.jradius.exception.RadiusException

getAuthName

public java.lang.String getAuthName()
Specified by:
getAuthName in class net.jradius.client.auth.RadiusAuthenticator
See Also:
net.sf.jradius.client.auth.RadiusAuthenticator#getAuthName()

putAppBuffer

public void putAppBuffer(byte[] b)

getAppBuffer

protected byte[] getAppBuffer()

doEAPType

public byte[] doEAPType(byte id,
                        byte[] data)
                 throws net.jradius.exception.RadiusException
Specified by:
doEAPType in class net.jradius.client.auth.EAPAuthenticator
Throws:
net.jradius.exception.RadiusException

nextFragment

protected byte[] nextFragment()

tlsResponse

protected byte[] tlsResponse(byte flags,
                             byte[] data)

doTunnelAuthentication

protected void doTunnelAuthentication(byte id,
                                      byte[] in)
                               throws java.lang.Throwable
Throws:
java.lang.Throwable

getCaFile

public java.lang.String getCaFile()

setCaFile

public void setCaFile(java.lang.String caFile)

getCaFileType

public java.lang.String getCaFileType()

setCaFileType

public void setCaFileType(java.lang.String caFileType)

getKeyFile

public java.lang.String getKeyFile()

setKeyFile

public void setKeyFile(java.lang.String keyFile)

getKeyFileType

public java.lang.String getKeyFileType()

setKeyFileType

public void setKeyFileType(java.lang.String keyFileType)

getKeyPassword

public java.lang.String getKeyPassword()

setKeyPassword

public void setKeyPassword(java.lang.String keyPassword)

getCaPassword

public java.lang.String getCaPassword()

setCaPassword

public void setCaPassword(java.lang.String caPassword)

getTrustAll

public java.lang.Boolean getTrustAll()

setTrustAll

public void setTrustAll(java.lang.Boolean trustAll)


Copyright © 2008 JRadius Project, All Rights Reserved.