You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trustStore: int, Resource id of your trust store file ex R.raw.cacerts.bks
Typically your servers trusted certificates (public key, Root Chain Authority etc)
trustStorePwd: String, Your TrustStore password (default is changeit)
keyStore: int, Resource id of your keystore
Usually your private key (client certificate)
keyStorePwd: Your KeyStore password (default is changeit)
allowAllHostnames: boolean, if true, authorizes any TLS/SSL hostname (default true) If false, Hostname in certificate (DN) must match the URL
Note: Prior to ICS, Android accept [Key|Trust]store only in BKS format (Bouncycastle Key Store)
A simple SSL authentication
This is useful if your remote server use a selfsigned certificate or a certificate issued by a private certificate authority
If you do not specify a truststore file, the annotation will use the default android truststore located at /system/etc/security/cacerts.bks which allows you to connect to a server signed with one of the trusted root CAs (Thawte, verisign etc.)