Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
dbird committed Apr 17, 2011
1 parent 60fcd25 commit 3adab8b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.io.IOException;
import java.io.OutputStream;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.Date;

/**
Expand Down Expand Up @@ -73,6 +74,12 @@ public void setValue(long l)
super.setValue(l);
dateValue = new Date(integerValue.longValue() * 1000);
}

public void getBytes(ByteBuffer buffer)
{
integerValue = new Long(dateValue.getTime() / 1000);
super.getBytes(buffer);
}

public String toString()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ public class EAPTLSAuthenticator extends EAPAuthenticator
private DefaultTlsClient tlsClient = null;

private ByteBuffer receivedEAP = ByteBuffer.allocate(10000000);


private KeyManager keyManagers[] = null;
private TrustManager trustManagers[] = null;

public EAPTLSAuthenticator()
{
setEAPType(EAP_TLS);
Expand Down Expand Up @@ -139,9 +142,6 @@ public void init() throws RadiusException
{
try
{
KeyManager keyManagers[] = null;
TrustManager trustManagers[] = null;

if (getKeyFile() != null)
{
keyManagers = KeyStoreUtil.loadKeyManager(getKeyFileType(), new FileInputStream(getKeyFile()), getKeyPassword());
Expand Down Expand Up @@ -705,4 +705,20 @@ protected boolean isCertificateRequired()
{
return true;
}

public KeyManager[] getKeyManagers() {
return keyManagers;
}

public void setKeyManagers(KeyManager[] keyManagers) {
this.keyManagers = keyManagers;
}

public TrustManager[] getTrustManagers() {
return trustManagers;
}

public void setTrustManagers(TrustManager[] trustManagers) {
this.trustManagers = trustManagers;
}
}

0 comments on commit 3adab8b

Please sign in to comment.