|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.net.http.SslCertificate
public class SslCertificate
SSL certificate info (certificate details) class
| Nested Class Summary | |
|---|---|
class |
SslCertificate.DName
A distinguished name helper class: a 3-tuple of: - common name (CN), - organization (O), - organizational unit (OU) |
| Constructor Summary | |
|---|---|
SslCertificate(String issuedTo,
String issuedBy,
String validNotBefore,
String validNotAfter)
Creates a new SSL certificate object |
|
SslCertificate(X509Certificate certificate)
Creates a new SSL certificate object from an X509 certificate |
|
| Method Summary | |
|---|---|
SslCertificate.DName |
getIssuedBy()
|
SslCertificate.DName |
getIssuedTo()
|
String |
getValidNotAfter()
|
String |
getValidNotBefore()
|
static SslCertificate |
restoreState(Bundle bundle)
Restores the certificate stored in the bundle |
static Bundle |
saveState(SslCertificate certificate)
Saves the certificate state to a bundle |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SslCertificate(String issuedTo,
String issuedBy,
String validNotBefore,
String validNotAfter)
issuedTo - The entity this certificate is issued toissuedBy - The entity that issued this certificatevalidNotBefore - The not-before date from the certificate validity periodvalidNotAfter - The not-after date from the certificate validity periodpublic SslCertificate(X509Certificate certificate)
certificate - X509 certificate| Method Detail |
|---|
public static Bundle saveState(SslCertificate certificate)
certificate - The SSL certificate to store
public static SslCertificate restoreState(Bundle bundle)
bundle - The bundle with the certificate state stored in it
public String getValidNotBefore()
public String getValidNotAfter()
public SslCertificate.DName getIssuedTo()
public SslCertificate.DName getIssuedBy()
public String toString()
Object
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||