Fields Summary |
---|
private DName | mIssuedToName of the entity this certificate is issued to |
private DName | mIssuedByName of the entity this certificate is issued by |
private String | mValidNotBeforeNot-before date from the validity period |
private String | mValidNotAfterNot-after date from the validity period |
private static final String | ISSUED_TOBundle key names |
private static final String | ISSUED_BY |
private static final String | VALID_NOT_BEFORE |
private static final String | VALID_NOT_AFTER |
Methods Summary |
---|
public android.net.http.SslCertificate$DName | getIssuedBy()
return mIssuedBy;
|
public android.net.http.SslCertificate$DName | getIssuedTo()
return mIssuedTo;
|
public java.lang.String | getValidNotAfter()
return mValidNotAfter != null ? mValidNotAfter : "";
|
public java.lang.String | getValidNotBefore()
return mValidNotBefore != null ? mValidNotBefore : "";
|
public static android.net.http.SslCertificate | restoreState(android.os.Bundle bundle)Restores the certificate stored in the bundle
if (bundle != null) {
return new SslCertificate(
bundle.getString(ISSUED_TO),
bundle.getString(ISSUED_BY),
bundle.getString(VALID_NOT_BEFORE),
bundle.getString(VALID_NOT_AFTER));
}
return null;
|
public static android.os.Bundle | saveState(android.net.http.SslCertificate certificate)Saves the certificate state to a bundle
Bundle bundle = null;
if (certificate != null) {
bundle = new Bundle();
bundle.putString(ISSUED_TO, certificate.getIssuedTo().getDName());
bundle.putString(ISSUED_BY, certificate.getIssuedBy().getDName());
bundle.putString(VALID_NOT_BEFORE, certificate.getValidNotBefore());
bundle.putString(VALID_NOT_AFTER, certificate.getValidNotAfter());
}
return bundle;
|
public java.lang.String | toString()
return
"Issued to: " + mIssuedTo.getDName() + ";\n" +
"Issued by: " + mIssuedBy.getDName() + ";\n";
|