public class EAPTLSAuthenticator extends EAPAuthenticator
| Modifier and Type | Field and Description |
|---|---|
protected int |
eapFragmentedOffset |
protected byte[] |
eapFragmentedReply |
static 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 |
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_SUCCESSclassAttribute, client, password, stateAttribute, username| Constructor and Description |
|---|
EAPTLSAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
static org.bouncycastle.crypto.params.AsymmetricKeyParameter |
createKey(byte[] privateKeyInfoData)
Create a private key parameter from a PKCS8 PrivateKeyInfo encoding.
|
static org.bouncycastle.crypto.params.AsymmetricKeyParameter |
createKey(InputStream inStr)
Create a private key parameter from a PKCS8 PrivateKeyInfo encoding read from a stream.
|
static org.bouncycastle.crypto.params.AsymmetricKeyParameter |
createKey(org.bouncycastle.asn1.pkcs.PrivateKeyInfo keyInfo)
Create a private key parameter from the passed in PKCS8 PrivateKeyInfo object.
|
byte[] |
doEAPType(byte id,
byte[] data) |
protected boolean |
doTunnelAuthentication(byte id,
byte[] in) |
protected byte[] |
getAppBuffer() |
String |
getAuthName() |
String |
getCaFile() |
String |
getCaFileType() |
String |
getCaPassword() |
String |
getKeyFile() |
String |
getKeyFileType() |
KeyManager[] |
getKeyManagers() |
String |
getKeyPassword() |
Boolean |
getTrustAll() |
TrustManager[] |
getTrustManagers() |
void |
init()
Initializs the SSL layer.
|
protected boolean |
isCertificateRequired() |
protected byte[] |
nextFragment() |
void |
putAppBuffer(byte[] b) |
void |
putAppBuffer(byte[] b,
int off,
int len) |
void |
setCaFile(String caFile) |
void |
setCaFileType(String caFileType) |
void |
setCaPassword(String caPassword) |
void |
setKeyFile(String keyFile) |
void |
setKeyFileType(String keyFileType) |
void |
setKeyManagers(KeyManager[] keyManagers) |
void |
setKeyPassword(String keyPassword) |
void |
setServerMode() |
void |
setTrustAll(Boolean trustAll) |
void |
setTrustManagers(TrustManager[] trustManagers) |
void |
setupRequest(RadiusClient c,
RadiusPacket p) |
protected byte[] |
tlsResponse(byte flags,
byte[] data) |
doEAP, doEAPType, eapFailure, eapRequest, eapResponse, eapSuccess, getEAPType, getState, isStartWithIdentity, negotiateEAPType, processChallenge, processRequest, setEAPType, setStartWithIdentity, setState, suedoEAPType, tlvSuccessgetClassAttribute, getClient, getPassword, getStateAttribute, getUsername, setClient, setPassword, setUsernamepublic static final String NAME
protected static final short TLS_START
protected static final short TLS_MORE_FRAGMENTS
protected static final short TLS_HAS_LENGTH
protected static final int TLS_CLIENT_HELLO
protected static final int TLS_SERVER_HELLO
protected static final int TLS_APP_DATA
protected byte[] eapFragmentedReply
protected int eapFragmentedOffset
public void setupRequest(RadiusClient c, RadiusPacket p) throws RadiusException, NoSuchAlgorithmException
setupRequest in class RadiusAuthenticatorRadiusExceptionNoSuchAlgorithmExceptionpublic void init()
throws RadiusException
public String getAuthName()
getAuthName in class RadiusAuthenticatorRadiusAuthenticator.getAuthName()public void setServerMode()
public void putAppBuffer(byte[] b)
public void putAppBuffer(byte[] b,
int off,
int len)
protected byte[] getAppBuffer()
public byte[] doEAPType(byte id,
byte[] data)
throws RadiusException
doEAPType in class EAPAuthenticatorRadiusExceptionprotected byte[] nextFragment()
protected byte[] tlsResponse(byte flags,
byte[] data)
protected boolean doTunnelAuthentication(byte id,
byte[] in)
throws Throwable
Throwablepublic String getCaFile()
public void setCaFile(String caFile)
public String getCaFileType()
public void setCaFileType(String caFileType)
public String getKeyFile()
public void setKeyFile(String keyFile)
public String getKeyFileType()
public void setKeyFileType(String keyFileType)
public String getKeyPassword()
public void setKeyPassword(String keyPassword)
public String getCaPassword()
public void setCaPassword(String caPassword)
public Boolean getTrustAll()
public void setTrustAll(Boolean trustAll)
public static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(byte[] privateKeyInfoData)
throws IOException
privateKeyInfoData - the PrivateKeyInfo encodingIOException - on an error decoding the keypublic static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(InputStream inStr) throws IOException
inStr - the stream to read the PrivateKeyInfo encoding fromIOException - on an error decoding the keypublic static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(org.bouncycastle.asn1.pkcs.PrivateKeyInfo keyInfo)
throws IOException
keyInfo - the PrivateKeyInfo object containing the key materialIOException - on an error decoding the keyprotected boolean isCertificateRequired()
public KeyManager[] getKeyManagers()
public void setKeyManagers(KeyManager[] keyManagers)
public TrustManager[] getTrustManagers()
public void setTrustManagers(TrustManager[] trustManagers)
Copyright © 2017. All rights reserved.