public class BuildStep
extends java.lang.Object
Vertex state description, a certificate, a possible throwable,
and a result code.Vertex| Modifier and Type | Field and Description |
|---|---|
static int |
BACK
result code associated with a certificate that was tried, but that
represents an unsuccessful path, so the certificate has been backed out
to allow backtracking to the next possible path.
|
static int |
FAIL
result code associated with a certificate that represents the end of the
last possible path, where no path successfully reached the target.
|
static int |
FOLLOW
result code associated with a certificate that successfully continues the
current path, but does not yet reach the target.
|
static int |
POSSIBLE
result code associated with a certificate that may continue a path from
the current certificate.
|
static int |
SUCCEED
result code associated with a certificate that represents the end of a
path that successfully reaches the target.
|
| Constructor and Description |
|---|
BuildStep(Vertex vtx,
int res)
construct a BuildStep
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
fullToString()
return a string representation of this build step, including all possible
detail of the vertex state, but not including the certificate contents.
|
java.security.cert.X509Certificate |
getCertificate()
return the certificate associated with this build step
|
java.lang.String |
getIssuerName()
return string form of issuer name from certificate associated with this
build step
|
java.lang.String |
getIssuerName(java.lang.String defaultName)
return string form of issuer name from certificate associated with this
build step, or a default name if no certificate associated with this
build step, or if issuer name could not be obtained from the certificate.
|
int |
getResult()
return the result code associated with this build step.
|
java.lang.String |
getSubjectName()
return string form of subject name from certificate associated with this
build step.
|
java.lang.String |
getSubjectName(java.lang.String defaultName)
return string form of subject name from certificate associated with this
build step, or a default name if no certificate associated with this
build step, or if subject name could not be obtained from the
certificate.
|
java.lang.Throwable |
getThrowable()
return the exception associated with this build step.
|
Vertex |
getVertex()
return vertex description for this build step
|
java.lang.String |
resultToString(int res)
return a string representing the meaning of the result code associated
with this build step.
|
java.lang.String |
toString()
return a string representation of this build step, showing minimal
detail.
|
java.lang.String |
verboseToString()
return a string representation of this build step, showing all detail of
the vertex state appropriate to the result of this build step, and the
certificate contents.
|
public static final int POSSIBLE
public static final int BACK
public static final int FOLLOW
public static final int FAIL
public static final int SUCCEED
public BuildStep(Vertex vtx, int res)
vtx - description of the vertex at this stepres - result, where result is one of POSSIBLE, BACK,
FOLLOW, FAIL, SUCCEEDpublic Vertex getVertex()
public java.security.cert.X509Certificate getCertificate()
public java.lang.String getIssuerName()
public java.lang.String getIssuerName(java.lang.String defaultName)
defaultName - name to use as default if unable to return an issuer
name from the certificate, or if no certificate.public java.lang.String getSubjectName()
public java.lang.String getSubjectName(java.lang.String defaultName)
defaultName - name to use as default if unable to return a subject
name from the certificate, or if no certificate.public java.lang.Throwable getThrowable()
public int getResult()
public java.lang.String resultToString(int res)
res - result codepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String verboseToString()
public java.lang.String fullToString()