net.sf.jradius.client.auth
Class EAPTTLSAuthenticator

java.lang.Object
  extended by net.sf.jradius.client.auth.RadiusAuthenticator
      extended by net.sf.jradius.client.auth.EAPAuthenticator
          extended by net.sf.jradius.client.auth.EAPTLSAuthenticator
              extended by net.sf.jradius.client.auth.EAPTTLSAuthenticator
All Implemented Interfaces:
TunnelAuthenticator

public class EAPTTLSAuthenticator
extends EAPTLSAuthenticator
implements TunnelAuthenticator

EAP-TTLS Authentication.

Author:
David Bird

Field Summary
static java.lang.String NAME
           
 
Fields inherited from class net.sf.jradius.client.auth.EAPTLSAuthenticator
eapFragmentedOffset, eapFragmentedReply, Finished, Handshaking, None, TLS_HAS_LENGTH, TLS_MORE_FRAGMENTS, TLS_START
 
Fields inherited from class net.sf.jradius.client.auth.EAPAuthenticator
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
 
Fields inherited from class net.sf.jradius.client.auth.RadiusAuthenticator
client, password, username
 
Constructor Summary
EAPTTLSAuthenticator()
           
 
Method Summary
protected  void doTunnelAuthentication(byte id, byte[] in)
           
 java.lang.String getAuthName()
           
 java.lang.String getInnerProtocol()
           
protected  void init()
          Initializs the SSL layer.
 void setInnerProtocol(java.lang.String innerProtocol)
           
 void setTunneledAttributes(AttributeList tunneledAttributes)
           
 void setupRequest(RadiusClient c, RadiusPacket p)
           
 
Methods inherited from class net.sf.jradius.client.auth.EAPTLSAuthenticator
doEAPType, getAppBuffer, getCaFile, getCaFileType, getCaPassword, getKeyFile, getKeyFileType, getKeyPassword, getPacketInputBuffer, getPacketOutputBuffer, getTrustAll, nextFragment, putAppBuffer, putPacketBuffer, setCaFile, setCaFileType, setCaPassword, setKeyFile, setKeyFileType, setKeyPassword, setTrustAll, tlsHandshake, tlsResponse, updatePacketBuffer
 
Methods inherited from class net.sf.jradius.client.auth.EAPAuthenticator
doEAP, eapResponse, getEAPType, isStartWithIdentity, negotiateEAPType, processChallenge, processRequest, setEAPType, setStartWithIdentity
 
Methods inherited from class net.sf.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
Constructor Detail

EAPTTLSAuthenticator

public EAPTTLSAuthenticator()
Method Detail

init

protected void init()
             throws RadiusException
Description copied from class: EAPTLSAuthenticator
Initializs the SSL layer.

Overrides:
init in class EAPTLSAuthenticator
Throws:
RadiusException

getAuthName

public java.lang.String getAuthName()
Overrides:
getAuthName in class EAPTLSAuthenticator
Returns:
Returns the name(s) of the protocol(s) provided.
See Also:
RadiusAuthenticator.getAuthName()

setTunneledAttributes

public void setTunneledAttributes(AttributeList tunneledAttributes)
Specified by:
setTunneledAttributes in interface TunnelAuthenticator
Parameters:
tunneledAttributes - The tunneledAttributes to set.

setupRequest

public void setupRequest(RadiusClient c,
                         RadiusPacket p)
                  throws RadiusException
Overrides:
setupRequest in class EAPTLSAuthenticator
Parameters:
c - The RadiusClient context being used
p - Setup the Authenticator with packet data
Throws:
RadiusException
See Also:
RadiusAuthenticator.setupRequest(net.sf.jradius.client.RadiusClient, net.sf.jradius.packet.RadiusPacket)

doTunnelAuthentication

protected void doTunnelAuthentication(byte id,
                                      byte[] in)
                               throws RadiusException,
                                      javax.net.ssl.SSLException
Overrides:
doTunnelAuthentication in class EAPTLSAuthenticator
Throws:
RadiusException
javax.net.ssl.SSLException

getInnerProtocol

public java.lang.String getInnerProtocol()

setInnerProtocol

public void setInnerProtocol(java.lang.String innerProtocol)


Copyright © 2006 The JRadius Project, All Rights Reserved.