net.jradius.client.auth
Class EAPTTLSAuthenticator

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

public class EAPTTLSAuthenticator
extends EAPTLSAuthenticator
implements net.jradius.client.auth.TunnelAuthenticator

EAP-TTLS Authentication.

Author:
David Bird

Field Summary
static String NAME
           
 
Fields inherited from class net.jradius.client.auth.EAPTLSAuthenticator
eapFragmentedOffset, eapFragmentedReply, TLS_APP_DATA, TLS_CLIENT_HELLO, TLS_HAS_LENGTH, TLS_MORE_FRAGMENTS, TLS_SERVER_HELLO, 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, STATE_AUTHENTICATED, STATE_CHALLENGE, STATE_FAILURE, STATE_REJECTED, STATE_SUCCESS
 
Fields inherited from class net.jradius.client.auth.RadiusAuthenticator
classAttribute, client, password, stateAttribute, username
 
Constructor Summary
EAPTTLSAuthenticator()
           
 
Method Summary
protected  boolean doTunnelAuthentication(byte id, byte[] in)
           
 String getAuthName()
           
 String getInnerProtocol()
           
 void init()
          Initializs the SSL layer.
protected  boolean isCertificateRequired()
           
 void setInnerProtocol(String innerProtocol)
           
 void setTunneledAttributes(net.jradius.packet.attribute.AttributeList tunneledAttributes)
           
 void setupRequest(net.jradius.client.RadiusClient c, net.jradius.packet.RadiusPacket p)
           
 
Methods inherited from class net.jradius.client.auth.EAPTLSAuthenticator
createKey, createKey, createKey, doEAPType, getAppBuffer, getCaFile, getCaFileType, getCaPassword, getKeyFile, getKeyFileType, getKeyPassword, getTrustAll, nextFragment, putAppBuffer, putAppBuffer, setCaFile, setCaFileType, setCaPassword, setKeyFile, setKeyFileType, setKeyPassword, setServerMode, setTrustAll, tlsResponse
 
Methods inherited from class net.jradius.client.auth.EAPAuthenticator
doEAP, doEAPType, eapFailure, eapRequest, eapResponse, eapSuccess, getEAPType, getState, isStartWithIdentity, negotiateEAPType, processChallenge, processRequest, setEAPType, setStartWithIdentity, setState, suedoEAPType, tlvSuccess
 
Methods inherited from class net.jradius.client.auth.RadiusAuthenticator
getClassAttribute, getClient, getPassword, getStateAttribute, getUsername, setClient, setPassword, setUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

EAPTTLSAuthenticator

public EAPTTLSAuthenticator()
Method Detail

init

public void init()
          throws net.jradius.exception.RadiusException
Description copied from class: EAPTLSAuthenticator
Initializs the SSL layer.

Overrides:
init in class EAPTLSAuthenticator
Throws:
net.jradius.exception.RadiusException

isCertificateRequired

protected boolean isCertificateRequired()
Overrides:
isCertificateRequired in class EAPTLSAuthenticator

getAuthName

public String getAuthName()
Overrides:
getAuthName in class EAPTLSAuthenticator
See Also:
RadiusAuthenticator.getAuthName()

setTunneledAttributes

public void setTunneledAttributes(net.jradius.packet.attribute.AttributeList tunneledAttributes)
Specified by:
setTunneledAttributes in interface net.jradius.client.auth.TunnelAuthenticator
Parameters:
tunneledAttributes - The tunneledAttributes to set.

setupRequest

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

doTunnelAuthentication

protected boolean doTunnelAuthentication(byte id,
                                         byte[] in)
                                  throws net.jradius.exception.RadiusException,
                                         SSLException
Overrides:
doTunnelAuthentication in class EAPTLSAuthenticator
Throws:
net.jradius.exception.RadiusException
SSLException

getInnerProtocol

public String getInnerProtocol()

setInnerProtocol

public void setInnerProtocol(String innerProtocol)


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.