FileDocCategorySizeDatePackage
TimeStampResp.javaAPI DocAndroid 1.5 API2939Wed May 06 22:41:06 BST 2009org.apache.harmony.security.x509.tsp

TimeStampResp

public class TimeStampResp extends Object
As defined in Time-Stamp Protocol (TSP) (http://www.ietf.org/rfc/rfc3161.txt) TimeStampResp ::= SEQUENCE { status PKIStatusInfo, timeStampToken TimeStampToken OPTIONAL }

Fields Summary
private final PKIStatusInfo
status
private final org.apache.harmony.security.pkcs7.ContentInfo
timeStampToken
public static final org.apache.harmony.security.asn1.ASN1Sequence
ASN1
Constructors Summary
public TimeStampResp(PKIStatusInfo status, org.apache.harmony.security.pkcs7.ContentInfo timeStampToken)

        this.status = status;
        this.timeStampToken = timeStampToken;
    
Methods Summary
public PKIStatusInfogetStatus()

return
Returns the status.

        return status;
    
public org.apache.harmony.security.pkcs7.ContentInfogetTimeStampToken()

return
Returns the timeStampToken.

        return timeStampToken;
    
public java.lang.StringtoString()

        StringBuffer res = new StringBuffer();
        res.append("-- TimeStampResp:");
        res.append("\nstatus:  ");
        res.append(status);
        res.append("\ntimeStampToken:  ");
        res.append(timeStampToken);
        res.append("\n-- TimeStampResp End\n");
        return res.toString();