/libcore/luni/src/main/java/java/security/cert/ |
CertSelector.java | 22 * Certificate} meets some criteria. 25 * criteria for selecting {@code Certificate}s from a {@code CertStore}. 28 * @see Certificate 41 * certificate. 44 * the certificate to be evaluated. 45 * @return {@code true} if the certificate matches the criteria, {@code 48 public boolean match(Certificate cert);
|
CRL.java | 21 * This class represents Certificate Revocation Lists (CRLs) maintained by a 22 * certificate authority. They are used to indicate that a given Certificate has 32 * Creates a new certificate revocation list of the specified type. 51 * Returns whether the specified certificate is revoked by this CRL. 54 * the certificate to check. 55 * @return {@code true} if the certificate is revoked by this CRL, otherwise 58 public abstract boolean isRevoked(Certificate cert);
|
CertificateFactorySpi.java | 28 * certificate type a security provider wishes to support. 40 * Generates and initializes a {@code Certificate} from the provided input 45 * certificate. 46 * @return an initialized certificate. 50 public abstract Certificate engineGenerateCertificate(InputStream inStream) 63 public abstract Collection<? extends Certificate> 67 * Generates and initializes a <i>Certificate Revocation List</i> (CRL) from 80 * Generates and initializes a collection of <i>Certificate Revocation 112 * an input stream containing certificate path data in specified 140 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates [all...] |
CertStoreSpi.java | 43 * Returns the list of {@code Certificate}s for the specified {@code 49 * @return the list of {@code Certificate}s that match the criteria of the 54 public abstract Collection<? extends Certificate> engineGetCertificates(CertSelector selector) 62 * the selector containing the criteria to search for certificate
|
/external/nist-sip/java/gov/nist/javax/sip/ |
TransactionExt.java | 4 import java.security.cert.Certificate; 56 * Get the certificate(s) that were sent to the peer during handshaking. 57 *@return the certificate(s) that were sent to the peer during handshaking. 61 Certificate[] getLocalCertificates() throws UnsupportedOperationException; 68 Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException;
|
/libcore/luni/src/main/java/java/net/ |
SecureCacheResponse.java | 19 import java.security.cert.Certificate; 48 * Gets the local certificate chain. When the original connection retrieved 49 * the resource data, this certificate chain was sent to the server during 50 * handshaking process. This method only takes effect when certificate-based 53 * @return the certificate chain that was sent to the server. If no 54 * certificate chain was sent, the method returns {@code null}. 56 public abstract List<Certificate> getLocalCertificateChain(); 59 * Gets the cached server's certificate chain. As part of defining the 60 * session, the certificate chain was established when the original 65 * @return the server's certificate chain [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
MyCRL.java | 26 import java.security.cert.Certificate; 52 * @param cert <code>Certificate</code> to be checked 54 * @see java.security.cert.CRL#isRevoked(java.security.cert.Certificate) 56 public boolean isRevoked(Certificate cert) {
|
/libcore/luni/src/main/java/javax/security/cert/ |
Certificate.java | 38 public abstract class Certificate { 41 * Creates a new {@code Certificate}. 43 public Certificate() {} 46 * Compares the argument to this Certificate. If both have the same bytes 50 * the {@code Certificate} to compare with this object 52 * {@code Certificate}, <code>false</code> otherwise 59 if (!(obj instanceof Certificate)) { 62 Certificate object = (Certificate) obj; 91 * Returns the encoded representation for this certificate [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
CodeSourceTest.java | 38 import java.security.cert.Certificate; 51 private java.security.cert.Certificate[] chain = null; 138 assertTrue(new CodeSource(null, (Certificate[]) null).hashCode() == 0); 140 assertTrue(new CodeSource(urlSite, (Certificate[]) null).hashCode() == urlSite 148 * Tests CodeSource(URL, Certificate[]). 154 args = {java.net.URL.class, java.security.cert.Certificate[].class} 157 new CodeSource(null, (Certificate[]) null); 158 new CodeSource(urlSite, (Certificate[]) null); 190 CodeSource thiz = new CodeSource(urlSite, (Certificate[]) null); 205 CodeSource thiz = new CodeSource(urlSite, (Certificate[]) null) [all...] |
KSTrustedCertificateEntryTest.java | 31 import java.security.cert.Certificate; 46 * Test for <codfe>KeyStore.TrustedCertificateEntry(Certificate trustCert)</code> 54 args = {java.security.cert.Certificate.class} 57 Certificate cert = null; 76 * Assertion: returns trusted Certificate from goven entry 85 Certificate cert = new MyCertificate("TEST", new byte[10]); 88 assertEquals("Incorrect certificate", cert, ksTCE.getTrustedCertificate()); 102 Certificate cert = new MyCertificate("TEST", new byte[10]);
|
CodeSource2Test.java | 30 import java.security.cert.Certificate; 43 * java.security.cert.Certificate[]) 47 notes = "Verifies constructor with valid URL and null certificate array", 49 args = {java.net.URL.class, java.security.cert.Certificate[].class} 54 // java.security.cert.Certificate []) 55 new CodeSource(new java.net.URL("file:///test"), (Certificate[]) null); 105 notes = "CodeSource object was created with CodeSource(URL url, Certificate[] certs) only", 113 (Certificate[]) null); 115 (Certificate[]) null); 130 CodeSource cs = new CodeSource(url, (Certificate[]) null) [all...] |
KSPrivateKeyEntryTest.java | 32 import java.security.cert.Certificate; 50 private Certificate [] testChain; 54 testChain = new Certificate[5]; 65 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code> 73 args = {java.security.PrivateKey.class, java.security.cert.Certificate[].class} 76 Certificate[] certs = new MyCertificate[1];//new Certificate[1]; 86 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code> 95 args = {java.security.PrivateKey.class, java.security.cert.Certificate[].class} 98 Certificate[] chain = null [all...] |
KeyStorePrivateKeyEntryTest.java | 26 import java.security.cert.Certificate; 36 String certificateData = "-----BEGIN CERTIFICATE-----\n" 50 + "-----END CERTIFICATE-----\n"; 62 Certificate certificate = cf.generateCertificate(certArray); local 63 assertTrue(certificate instanceof X509Certificate); 65 String algorithm = certificate.getPublicKey().getAlgorithm(); 71 // If all the certificate in the chain is X509Certificate, 74 privateKey, new Certificate[] { certificate }); [all...] |
KeyStore3Test.java | 41 import java.security.cert.Certificate; 54 private Certificate certificate; field in class:KeyStore3Test 60 String certificateData = "-----BEGIN CERTIFICATE-----\n" 74 + "-----END CERTIFICATE-----\n"; 79 certificate = cf.generateCertificate(certArray); 116 args = {java.lang.String.class, java.security.Key.class, char[].class, java.security.cert.Certificate[].class} 128 args = {java.lang.String.class, java.security.Key.class, char[].class, java.security.cert.Certificate[].class} 133 mockKeyStore.setKeyEntry("Alias", null, null, new Certificate[]{certificate}); [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
HttpsURLConnection.java | 23 import java.security.cert.Certificate; 121 * the local identity certificate followed by CAs, or {@code null} 126 public abstract Certificate[] getLocalCertificates(); 133 * identity certificate followed by CAs. 139 public abstract Certificate[] getServerCertificates() throws SSLPeerUnverifiedException; 151 Certificate[] certs = getServerCertificates(); 153 throw new SSLPeerUnverifiedException("No server's end-entity certificate"); 167 Certificate[] certs = getLocalCertificates();
|
HandshakeCompletedEvent.java | 21 import java.security.cert.Certificate; 70 * the local identity certificate followed by CAs, or {@code null} 73 public Certificate[] getLocalCertificates() { 82 * identity certificate followed by CAs. 86 public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException { 92 * identity certificate is followed by the validated certificate authority
|
SSLSession.java | 21 import java.security.cert.Certificate; 71 * @return the list of certificates, ordered from local certificate to 74 public Certificate[] getLocalCertificates(); 98 * @return the list of certificates, ordered from the identity certificate to 109 * @return the list of certificates, ordered from the identity certificate to 114 public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MyKeyStoreSpi.java | 35 import java.security.cert.Certificate; 53 public Certificate[] engineGetCertificateChain(String alias) { 57 public Certificate engineGetCertificate(String alias) { 69 Certificate[] chain) throws KeyStoreException { 74 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) 80 public void engineSetCertificateEntry(String alias, Certificate cert) 124 public String engineGetCertificateAlias(Certificate cert) { 146 class MyCertificate extends Certificate {
|
TestKeyStoreSpi.java | 17 import java.security.cert.Certificate; 31 public static final Certificate CERT = new MyCertificate("certtype", 33 public static final Certificate[] CERTCHAIN = new Certificate[] { 78 public Certificate engineGetCertificate(String alias) { 79 return (Certificate) aliases.get(alias); 83 public String engineGetCertificateAlias(Certificate cert) { 98 public Certificate[] engineGetCertificateChain(String alias) { 99 return (Certificate[]) aliases.get(alias); 128 Certificate c = (Certificate) aliases.get(alias) [all...] |
/libcore/luni/src/main/java/java/util/jar/ |
JarVerifier.java | 27 import java.security.cert.Certificate; 63 private final Hashtable<String, Certificate[]> certificates = new Hashtable<String, Certificate[]>( 66 private final Hashtable<String, Certificate[]> verifiedEntries = new Hashtable<String, Certificate[]>(); 82 private Certificate[] certificates; 85 Certificate[] certificates) { 174 Vector<Certificate> certs = new Vector<Certificate>(); 184 Vector<Certificate> newCerts = getSignerCertificates [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
Certificate.java | 34 * with the X.509 certificate. Its ASN notation is as follows 37 * Certificate and Certificate Revocation List (CRL) Profile. 41 * Certificate ::= SEQUENCE { 48 public class Certificate { 56 // the ASN.1 encoded form of Certificate 65 public Certificate(TBSCertificate tbsCertificate, 82 private Certificate(TBSCertificate tbsCertificate, 117 buffer.append("X.509 Certificate:\n[\n"); 134 encoding = Certificate.ASN1.encode(this) [all...] |
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertPathBuilderTestPKIX.java | 24 import java.security.cert.Certificate; 59 List<Certificate> certList = new ArrayList<Certificate>(); 77 List<? extends Certificate> certificates = path.getCertificates(); 78 Certificate certificate = certificates.get(0); local 80 assertEquals("unexpected certificate type", "X.509", certificate 83 X509Certificate x509Certificate = (X509Certificate) certificate; 94 private String selfSignedCert = "-----BEGIN CERTIFICATE-----\n [all...] |
/libcore/luni/src/main/java/java/security/ |
CodeSource.java | 29 import java.security.cert.Certificate; 55 private transient java.security.cert.Certificate[] certs; 69 * {@code URL} and the {@code Certificate}s. 75 * the {@code Certificate} used to verify the code, loaded from 78 public CodeSource(URL location, Certificate[] certs) { 81 this.certs = new Certificate[certs.length]; 109 * code sources encapsulate the same {@code Certificate}s. The order of the 110 * {@code Certificate}s is ignored by this method. 143 Certificate[] thizCerts = getCertificatesNoClone(); 144 Certificate[] thatCerts = that.getCertificatesNoClone() [all...] |
Identity.java | 44 private Vector<Certificate> certificates; 84 * Adds a {@code Certificate} to this {@code Identity}. 90 * @param certificate 91 * the {@code Certificate} to be added to this {@code Identity}. 93 * if the certificate is not valid. 98 public void addCertificate(Certificate certificate) 104 PublicKey certPK = certificate.getPublicKey(); 113 certificates = new Vector<Certificate>(); 115 certificates.add(certificate); [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
CertificateFactory3Test.java | 39 import java.security.cert.Certificate; 89 * Assertion: returns Certificate 100 Certificate[] certs = new Certificate[3]; 111 * Assertion: returns Collection which consists of 1 Certificate 122 Certificate cert = certFs[0] 126 Collection<? extends Certificate> col = null; 129 Iterator<? extends Certificate> it = col.iterator(); 131 assertEquals("Incorrect Certificate in Collection", cert, it.next()); 137 * Assertion: returns CertPath with 1 Certificate [all...] |