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.
-
DefaultTrustDecider(boolean)
- Creates a new DefaultTrustDecider.
-
DefaultTrustDecider(Name[], boolean)
- Creates a new DefaultTrustDecider.
-
getAcceptedCAs()
- Returns the accepted CAs.
-
isTrustedPeer(X509Certificate[])
- Trusts every peer certificate and saves the certificate list if desired.
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
DefaultTrustDecider
public DefaultTrustDecider(boolean save)
- Creates a new DefaultTrustDecider.
- Parameters:
- save -
true
if the certificate list should be saved
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
getAcceptedCAs
public Name[] getAcceptedCAs()
- Returns the accepted CAs.
- Returns:
- the accepted CAs
All Packages Class Hierarchy This Package Previous Next Index