All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.security.ssl.DefaultTrustDecider

java.lang.Object
   |
   +----iaik.security.ssl.DefaultTrustDecider

public class DefaultTrustDecider
extends Object
implements TrustDecider
A default TrustDecider which trusts everyone and saves the certificate list if desired. The file names have the following format: certList[x].der.


Constructor Index

 o DefaultTrustDecider(boolean)
Creates a new DefaultTrustDecider.
 o DefaultTrustDecider(Name[], boolean)
Creates a new DefaultTrustDecider.

Method Index

 o getAcceptedCAs()
Returns the accepted CAs.
 o isTrustedPeer(X509Certificate[])
Trusts every peer certificate and saves the certificate list if desired.

Constructors

 o DefaultTrustDecider
 public DefaultTrustDecider(Name acceptedCAs[],
                            boolean save)
Creates a new DefaultTrustDecider.

Parameters:
acceptedCAs - an array with the names of accepted CAs
save - true if the certificate list should be saved
 o DefaultTrustDecider
 public DefaultTrustDecider(boolean save)
Creates a new DefaultTrustDecider.

Parameters:
save - true if the certificate list should be saved

Methods

 o isTrustedPeer
 public boolean isTrustedPeer(X509Certificate certList[])
Trusts every peer certificate and saves the certificate list if desired.

Parameters:
certList - the certificate list of the peer or null if the peer has no certificate
Returns:
always true
 o getAcceptedCAs
 public Name[] getAcceptedCAs()
Returns the accepted CAs.

Returns:
the accepted CAs

All Packages  Class Hierarchy  This Package  Previous  Next  Index