APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.provider.certpath

pack-priv Class ForwardState

extends Object
implements State
Class Inheritance
All Implemented Interfaces
sun.security.provider.certpath.State, java.lang.Cloneable
Imports
java.io.IOException, java.security.cert.CertificateException, .CertPathValidatorException, .PKIXCertPathChecker, .X509Certificate, java.util.ArrayList, .List, .ListIterator, javax.security.auth.x500.X500Principal, sun.security.util.Debug, sun.security.x509.X509CertImpl

A specification of a forward PKIX validation state which is initialized by each build and updated each time a certificate is added to the current path.
Author
Yassir Elley
Since
1.4

Field Summary

Modifier and TypeField and Description
pack-priv X509CertImpl
private static final Debug
pack-priv ArrayList<PKIXCertPathChecker>
private boolean
pack-priv X500Principal
pack-priv boolean
pack-priv int
pack-priv UntrustedChecker

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides java.lang.Object.clone.

Implements sun.security.provider.certpath.State.clone.

Creates and returns a copy of this object

public void
initState(List<PKIXCertPathChecker>
the list of user-defined PKIXCertPathCheckers
certPathCheckers
)

Initialize the state.

public boolean

Returns:

boolean flag indicating if the state is initial (just starting)
isInitial
()

Implements sun.security.provider.certpath.State.isInitial.

Returns a boolean flag indicating if the state is initial (just starting)

public String
toString()

Overrides java.lang.Object.toString.

Display state for debugging purposes

public void
updateState(X509Certificate
the certificate which is used to update the state
cert
)

Implements sun.security.provider.certpath.State.updateState.

Update the state with the next certificate added to the path.

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

certback to summary
pack-priv X509CertImpl cert
debugback to summary
private static final Debug debug
forwardCheckersback to summary
pack-priv ArrayList<PKIXCertPathChecker> forwardCheckers
initback to summary
private boolean init
issuerDNback to summary
pack-priv X500Principal issuerDN
selfIssuedback to summary
pack-priv boolean selfIssued
traversedCACertsback to summary
pack-priv int traversedCACerts
untrustedCheckerback to summary
pack-priv UntrustedChecker untrustedChecker

Constructor Detail

ForwardStateback to summary
pack-priv ForwardState()

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Implements sun.security.provider.certpath.State.clone.

Doc from sun.security.provider.certpath.State.clone.

Creates and returns a copy of this object

Annotations
@Override
@SuppressWarnings:unchecked
initStateback to summary
public void initState(List<PKIXCertPathChecker> certPathCheckers) throws CertPathValidatorException

Initialize the state.

Parameters
certPathCheckers:List<PKIXCertPathChecker>

the list of user-defined PKIXCertPathCheckers

isInitialback to summary
public boolean isInitial()

Implements sun.security.provider.certpath.State.isInitial.

Returns a boolean flag indicating if the state is initial (just starting)

Returns:boolean

boolean flag indicating if the state is initial (just starting)

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Display state for debugging purposes

Annotations
@Override
updateStateback to summary
public void updateState(X509Certificate cert) throws CertificateException, IOException, CertPathValidatorException

Implements sun.security.provider.certpath.State.updateState.

Update the state with the next certificate added to the path.

Parameters
cert:X509Certificate

the certificate which is used to update the state

Annotations
@Override