|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.cert.PKIXParameters
public class PKIXParameters
Parameters for verifying certificate paths using the PKIX (Public-Key Infrastructure (X.509)) algorithm.
CertPathBuilder| Constructor Summary | |
|---|---|
PKIXParameters(KeyStore keystore)
Create a new PKIXParameters object, populating the trusted certificates set with all certificates found in the given key store. |
|
PKIXParameters(Set<TrustAnchor> trustAnchors)
Create a new PKIXParameters object, populating the trusted certificates set with the elements of the given set, each of which must be a TrustAnchor. |
|
| Method Summary | |
|---|---|
void |
addCertPathChecker(PKIXCertPathChecker checker)
Add a certificate path checker. |
void |
addCertStore(CertStore store)
Add a CertStore to the list of cert stores. |
Object |
clone()
Returns a copy of these parameters. |
List<PKIXCertPathChecker> |
getCertPathCheckers()
Returns an immutable list of all certificate path checkers. |
List<CertStore> |
getCertStores()
Returns an immutable list of cert stores. |
Date |
getDate()
Returns the date for which the certificate path should be validated, or null if the current time should be used. |
Set<String> |
getInitialPolicies()
Returns the set of initial policy identifiers (as OID strings). |
boolean |
getPolicyQualifiersRejected()
Returns the value of the policy qualifiers enabled flag. |
String |
getSigProvider()
Returns the signature algorithm provider, or null if not set. |
CertSelector |
getTargetCertConstraints()
Returns the constraints placed on the target certificate, or null if there are none. |
Set<TrustAnchor> |
getTrustAnchors()
Returns an immutable set of trust anchors. |
boolean |
isAnyPolicyInhibited()
Returns the value of the any policy inhibited flag. |
boolean |
isExplicitPolicyRequired()
Returns the value of the explicit policy required flag. |
boolean |
isPolicyMappingInhibited()
Returns the value of the policy mapping inhibited flag. |
boolean |
isRevocationEnabled()
Returns the value of the revocation enabled flag. |
void |
setAnyPolicyInhibited(boolean value)
Sets the value of the any policy inhibited flag. |
void |
setCertPathCheckers(List<PKIXCertPathChecker> pathCheckers)
Sets the certificate path checkers. |
void |
setCertStores(List<CertStore> certStores)
Set the cert stores. |
void |
setDate(Date date)
Sets the date for which the certificate path should be validated, or null if the current time should be used. |
void |
setExplicitPolicyRequired(boolean value)
Sets the value of the explicit policy required flag. |
void |
setInitialPolicies(Set<String> initPolicies)
Sets the initial policy identifiers (as OID strings). |
void |
setPolicyMappingInhibited(boolean value)
Sets the value of the policy mapping inhibited flag. |
void |
setPolicyQualifiersRejected(boolean value)
Sets the value of the policy qualifiers enabled flag. |
void |
setRevocationEnabled(boolean value)
Sets the value of the revocation enabled flag. |
void |
setSigProvider(String sigProvider)
Sets the signature algorithm provider, or null if there is no preferred provider. |
void |
setTargetCertConstraints(CertSelector targetConstraints)
Sets the constraints placed on the target certificate. |
void |
setTrustAnchors(Set<TrustAnchor> trustAnchors)
Sets the trust anchors of this class, replacing the current trust anchors with those in the given set. |
String |
toString()
Returns a printable representation of these parameters. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PKIXParameters(KeyStore keystore)
throws KeyStoreException,
InvalidAlgorithmParameterException
keystore - The key store.
KeyStoreException - If the certificates cannot be retrieved
from the key store.
InvalidAlgorithmParameterException - If there are no
certificates in the key store.
NullPointerException - If keystore is null.
public PKIXParameters(Set<TrustAnchor> trustAnchors)
throws InvalidAlgorithmParameterException
TrustAnchor.
trustAnchors - The set of trust anchors.
InvalidAlgorithmParameterException - If there are no
certificates in the set.
NullPointerException - If trustAnchors is null.
ClassCastException - If every element in trustAnchors
is not a TrustAnchor.| Method Detail |
|---|
public Set<TrustAnchor> getTrustAnchors()
public void setTrustAnchors(Set<TrustAnchor> trustAnchors)
throws InvalidAlgorithmParameterException
trustAnchors - The new set of trust anchors.
InvalidAlgorithmParameterException - If there are no
certificates in the set.
NullPointerException - If trustAnchors is null.
ClassCastException - If every element in trustAnchors
is not a TrustAnchor.public Set<String> getInitialPolicies()
public void setInitialPolicies(Set<String> initPolicies)
initPolicies - The new set of policy strings, or null.
ClassCastException - If any element in initPolicies is
not a string.public void addCertStore(CertStore store)
CertStore to the list of cert stores.
store - The CertStore to add.public List<CertStore> getCertStores()
public void setCertStores(List<CertStore> certStores)
certStores - The cert stores.public boolean isRevocationEnabled()
true.
public void setRevocationEnabled(boolean value)
value - The new value.public boolean isExplicitPolicyRequired()
false.
public void setExplicitPolicyRequired(boolean value)
value - The new value.public boolean isPolicyMappingInhibited()
false.
public void setPolicyMappingInhibited(boolean value)
value - The new value.public boolean isAnyPolicyInhibited()
false.
public void setAnyPolicyInhibited(boolean value)
value - The new value.public boolean getPolicyQualifiersRejected()
true.
public void setPolicyQualifiersRejected(boolean value)
value - The new value.public Date getDate()
public void setDate(Date date)
date - The new date, or null.public void addCertPathChecker(PKIXCertPathChecker checker)
checker - The certificate path checker to add.public List<PKIXCertPathChecker> getCertPathCheckers()
public void setCertPathCheckers(List<PKIXCertPathChecker> pathCheckers)
pathCheckers - The new list of certificate path checkers.
ClassCastException - If any element of pathCheckers is
not a PKIXCertPathChecker.public String getSigProvider()
public void setSigProvider(String sigProvider)
sigProvider - The signature provider name.public CertSelector getTargetCertConstraints()
public void setTargetCertConstraints(CertSelector targetConstraints)
targetConstraints - The target constraints.public Object clone()
clone in interface CertPathParametersclone in class ObjectCloneablepublic String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||