eu.emi.security.authn.x509.helpers.pkipath
Class ExtPKIXParameters

java.lang.Object
  extended by java.security.cert.PKIXParameters
      extended by org.bouncycastle.x509.ExtendedPKIXParameters
          extended by org.bouncycastle.x509.ExtendedPKIXBuilderParameters
              extended by eu.emi.security.authn.x509.helpers.pkipath.ExtPKIXParameters
All Implemented Interfaces:
Cloneable, CertPathParameters

public class ExtPKIXParameters
extends ExtendedPKIXBuilderParameters

Extended PKIX parameters with additional settings related to the library features different CRL modes and proxy support.

Author:
K. Benedyczak

Field Summary
protected  CrlCheckingMode crlMode
           
protected  boolean proxySupport
           
 
Fields inherited from class org.bouncycastle.x509.ExtendedPKIXParameters
CHAIN_VALIDITY_MODEL, PKIX_VALIDITY_MODEL
 
Constructor Summary
ExtPKIXParameters(Set<TrustAnchor> trustAnchors, Selector targetSelector)
           
 
Method Summary
 ExtPKIXParameters clone()
          Makes a copy of this ExtPKIXParameters object.
 CrlCheckingMode getCrlMode()
           
 Set<TrustAnchor> getTrustAnchors()
          Returns an immutable Set of the most-trusted CAs.
 boolean isProxySupport()
           
 void setCrlMode(CrlCheckingMode crlMode)
           
 void setProxySupport(boolean proxySupport)
           
 void setTrustAnchors(Set<TrustAnchor> trustAnchors)
          We override this method as we also accept an empty list of trust anchors.
 String toString()
           
 
Methods inherited from class org.bouncycastle.x509.ExtendedPKIXBuilderParameters
getExcludedCerts, getInstance, getMaxPathLength, setExcludedCerts, setMaxPathLength, setParams
 
Methods inherited from class org.bouncycastle.x509.ExtendedPKIXParameters
addAddionalStore, addAdditionalStore, addStore, getAdditionalStores, getAttrCertCheckers, getNecessaryACAttributes, getProhibitedACAttributes, getStores, getTargetConstraints, getTrustedACIssuers, getValidityModel, isAdditionalLocationsEnabled, isUseDeltasEnabled, setAdditionalLocationsEnabled, setAttrCertCheckers, setCertStores, setNecessaryACAttributes, setProhibitedACAttributes, setStores, setTargetCertConstraints, setTargetConstraints, setTrustedACIssuers, setUseDeltasEnabled, setValidityModel
 
Methods inherited from class java.security.cert.PKIXParameters
addCertPathChecker, addCertStore, getCertPathCheckers, getCertStores, getDate, getInitialPolicies, getPolicyQualifiersRejected, getSigProvider, getTargetCertConstraints, isAnyPolicyInhibited, isExplicitPolicyRequired, isPolicyMappingInhibited, isRevocationEnabled, setAnyPolicyInhibited, setCertPathCheckers, setDate, setExplicitPolicyRequired, setInitialPolicies, setPolicyMappingInhibited, setPolicyQualifiersRejected, setRevocationEnabled, setSigProvider
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

proxySupport

protected boolean proxySupport

crlMode

protected CrlCheckingMode crlMode
Constructor Detail

ExtPKIXParameters

public ExtPKIXParameters(Set<TrustAnchor> trustAnchors,
                         Selector targetSelector)
                  throws InvalidAlgorithmParameterException
Throws:
InvalidAlgorithmParameterException
Method Detail

isProxySupport

public boolean isProxySupport()

setProxySupport

public void setProxySupport(boolean proxySupport)

getCrlMode

public CrlCheckingMode getCrlMode()

setCrlMode

public void setCrlMode(CrlCheckingMode crlMode)

setTrustAnchors

public void setTrustAnchors(Set<TrustAnchor> trustAnchors)
                     throws InvalidAlgorithmParameterException
We override this method as we also accept an empty list of trust anchors.

Overrides:
setTrustAnchors in class PKIXParameters
Throws:
InvalidAlgorithmParameterException

getTrustAnchors

public Set<TrustAnchor> getTrustAnchors()
Returns an immutable Set of the most-trusted CAs.

Overrides:
getTrustAnchors in class PKIXParameters
Returns:
an immutable Set of TrustAnchors (never null)
See Also:
setTrustAnchors(java.util.Set)

toString

public String toString()
Overrides:
toString in class PKIXParameters

clone

public ExtPKIXParameters clone()
Makes a copy of this ExtPKIXParameters object. Changes to the copy will not affect the original and vice versa.

Specified by:
clone in interface CertPathParameters
Overrides:
clone in class ExtendedPKIXBuilderParameters
Returns:
a copy of this ExtPKIXParameters object


Copyright © 2012 European Middleware Initiative. All Rights Reserved.