Top Description Inners Fields Constructors Methods
sun.security.provider.certpath

pack-priv Class PKIX

extends Object
Class Inheritance
Imports
java.security.InvalidAlgorithmParameterException, .PublicKey, .Timestamp, java.security.cert.*, java.security.interfaces.DSAPublicKey, java.util.*, javax.security.auth.x500.X500Principal, sun.security.util.Debug, sun.security.validator.Validator

Common utility methods and classes used by the PKIX CertPathValidator and CertPathBuilder implementation.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
private static class
PKIX.CertStoreComparator

Comparator that orders CertStores so that local CertStores come before remote CertStores.

pack-priv static class
PKIX.CertStoreTypeException

A CertStoreException with additional information about the type of CertStore that generated the exception.

pack-priv static class
PKIX.ValidatorParams

PKIXParameters that are shared by the PKIX CertPathValidator implementation.

Field Summary

Modifier and TypeField and Description
private static final Debug

Constructor Summary

AccessConstructor and Description
private
PKIX()

Method Summary

Modifier and TypeMethod and Description
pack-priv static PKIX.BuilderParams
pack-priv static PKIX.ValidatorParams
pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

debugback to summary
private static final Debug debug

Constructor Detail

PKIXback to summary
private PKIX()

Method Detail

checkBuilderParamsback to summary
pack-priv static PKIX.BuilderParams checkBuilderParams(CertPathParameters params) throws InvalidAlgorithmParameterException
checkParamsback to summary
pack-priv static PKIX.ValidatorParams checkParams(CertPath cp, CertPathParameters params) throws InvalidAlgorithmParameterException
isDSAPublicKeyWithoutParamsback to summary
pack-priv static boolean isDSAPublicKeyWithoutParams(PublicKey publicKey)
sun.security.provider.certpath back to summary

pack-priv Class PKIX.BuilderParams

extends ValidatorParams
Class Inheritance

Field Summary

Modifier and TypeField and Description
private PKIXBuilderParameters
private List<CertStore>
private X500Principal

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv List<CertStore>
private void
private static X500Principal
getTargetSubject(List<CertStore> stores, X509CertSelector sel)

Returns the target subject DN from the first X509Certificate that is fetched that matches the specified X509CertSelector.

pack-priv int
pack-priv PKIXBuilderParameters
pack-priv X500Principal
Inherited from sun.security.provider.certpath.PKIX.ValidatorParams:
anyPolicyInhibitedcertificatescertPathcertPathCheckersdateexplicitPolicyRequiredgetPKIXParametersinitialPoliciespolicyMappingInhibitedpolicyQualifiersRejectedrevocationEnabledsetCertPathsigProvidertargetCertConstraintstimestamptrustAnchorsvariant

Field Detail

paramsback to summary
private PKIXBuilderParameters params

Hides sun.security.provider.certpath.PKIX.ValidatorParams.params.

storesback to summary
private List<CertStore> stores

Hides sun.security.provider.certpath.PKIX.ValidatorParams.stores.

targetSubjectback to summary
private X500Principal targetSubject

Constructor Detail

BuilderParamsback to summary
pack-priv BuilderParams(PKIXBuilderParameters params) throws InvalidAlgorithmParameterException

Method Detail

certStoresback to summary
pack-priv List<CertStore> certStores()

Overrides sun.security.provider.certpath.PKIX.ValidatorParams.certStores.

Annotations
@Override
checkParamsback to summary
private void checkParams(PKIXBuilderParameters params) throws InvalidAlgorithmParameterException
getTargetSubjectback to summary
private static X500Principal getTargetSubject(List<CertStore> stores, X509CertSelector sel) throws InvalidAlgorithmParameterException

Returns the target subject DN from the first X509Certificate that is fetched that matches the specified X509CertSelector.

maxPathLengthback to summary
pack-priv int maxPathLength()
paramsback to summary
pack-priv PKIXBuilderParameters params()
targetSubjectback to summary
pack-priv X500Principal targetSubject()
sun.security.provider.certpath back to summary

private Class PKIX.CertStoreComparator

extends Object
implements Comparator<CertStore>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

Comparator that orders CertStores so that local CertStores come before remote CertStores.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compare(CertStore
the first object to be compared.
store1
,
CertStore
the second object to be compared.
store2
)

Implements java.util.Comparator.compare.

Compares its two arguments for order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CertStoreComparatorback to summary
private CertStoreComparator()

Method Detail

compareback to summary
public int compare(CertStore store1, CertStore store2)

Implements java.util.Comparator.compare.

Doc from java.util.Comparator.compare.

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

The implementor must ensure that signum(compare(x, y)) == -signum(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

The implementor must also ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Finally, the implementor must ensure that compare(x, y)==0 implies that signum(compare(x, z))==signum(compare(y, z)) for all z.

Parameters
store1:CertStore

the first object to be compared.

store2:CertStore

the second object to be compared.

Returns:int

a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Annotations
@Override
sun.security.provider.certpath back to summary

pack-priv Class PKIX.CertStoreTypeException

extends CertStoreException
Class Inheritance

A CertStoreException with additional information about the type of CertStore that generated the exception.

Field Summary

Modifier and TypeField and Description
private static final long
private final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv String

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.cert.CertStoreException.serialVersionUID.

Annotations
@Serial
typeback to summary
private final String type

Constructor Detail

CertStoreTypeExceptionback to summary
pack-priv CertStoreTypeException(String type, CertStoreException cse)

Method Detail

getTypeback to summary
pack-priv String getType()
sun.security.provider.certpath back to summary

pack-priv Class PKIX.ValidatorParams

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.provider.certpath.PKIX.BuilderParams

PKIXParameters that are shared by the PKIX CertPathValidator implementation. Provides additional functionality and avoids unnecessary cloning.

Field Summary

Modifier and TypeField and Description
private final Set<TrustAnchor>
private CertPath
private List<X509Certificate>
private List<PKIXCertPathChecker>
private CertSelector
private Date
private boolean
private boolean
private final PKIXParameters
private Set<String>
private List<CertStore>
private Timestamp
private Date
private String

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
pack-priv List<X509Certificate>
pack-priv CertPath
pack-priv List<PKIXCertPathChecker>
pack-priv List<CertStore>
pack-priv Date
date()

pack-priv boolean
pack-priv PKIXParameters
pack-priv Set<String>
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv void
pack-priv String
pack-priv CertSelector
pack-priv Date
pack-priv Set<TrustAnchor>
pack-priv String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

anchorsback to summary
private final Set<TrustAnchor> anchors
certPathback to summary
private CertPath certPath
certsback to summary
private List<X509Certificate> certs
checkersback to summary
private List<PKIXCertPathChecker> checkers
constraintsback to summary
private CertSelector constraints
dateback to summary
private Date date
gotConstraintsback to summary
private boolean gotConstraints
gotDateback to summary
private boolean gotDate
paramsback to summary
private final PKIXParameters params
policiesback to summary
private Set<String> policies
storesback to summary
private List<CertStore> stores
timestampback to summary
private Timestamp timestamp
timestampDateback to summary
private Date timestampDate
variantback to summary
private String variant

Constructor Detail

ValidatorParamsback to summary
pack-priv ValidatorParams(CertPath cp, PKIXParameters params) throws InvalidAlgorithmParameterException
ValidatorParamsback to summary
pack-priv ValidatorParams(PKIXParameters params) throws InvalidAlgorithmParameterException

Method Detail

anyPolicyInhibitedback to summary
pack-priv boolean anyPolicyInhibited()
certificatesback to summary
pack-priv List<X509Certificate> certificates()
certPathback to summary
pack-priv CertPath certPath()
certPathCheckersback to summary
pack-priv List<PKIXCertPathChecker> certPathCheckers()
certStoresback to summary
pack-priv List<CertStore> certStores()
dateback to summary
pack-priv Date date()
explicitPolicyRequiredback to summary
pack-priv boolean explicitPolicyRequired()
getPKIXParametersback to summary
pack-priv PKIXParameters getPKIXParameters()
initialPoliciesback to summary
pack-priv Set<String> initialPolicies()
policyMappingInhibitedback to summary
pack-priv boolean policyMappingInhibited()
policyQualifiersRejectedback to summary
pack-priv boolean policyQualifiersRejected()
revocationEnabledback to summary
pack-priv boolean revocationEnabled()
setCertPathback to summary
pack-priv void setCertPath(CertPath cp)
sigProviderback to summary
pack-priv String sigProvider()
targetCertConstraintsback to summary
pack-priv CertSelector targetCertConstraints()
timestampback to summary
pack-priv Date timestamp()
trustAnchorsback to summary
pack-priv Set<TrustAnchor> trustAnchors()
variantback to summary
pack-priv String variant()