Searched defs:keyUsage (Results 1 - 5 of 5) sorted by relevance

/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DKeyUsage.java30 * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 }
62 private final boolean[] keyUsage; field in class:KeyUsage
69 this.keyUsage = (boolean[]) ASN1.decode(encoding);
73 return keyUsage;
78 encoding = ASN1.encode(keyUsage);
85 for (int i = 0; i < keyUsage.length; i++) {
86 if (keyUsage[i]) {
/libcore/luni/src/main/java/java/security/cert/
H A DX509CertSelector.java63 private boolean[] keyUsage; field in class:X509CertSelector
552 * @param keyUsage
557 public void setKeyUsage(boolean[] keyUsage) { argument
558 if (keyUsage == null) {
559 this.keyUsage = null;
562 this.keyUsage = new boolean[keyUsage.length];
563 System.arraycopy(keyUsage, 0, this.keyUsage, 0, keyUsage
590 setExtendedKeyUsage(Set<String> keyUsage) argument
[all...]
/libcore/support/src/test/java/libcore/java/security/
H A DTestKeyStore.java222 private int keyUsage; field in class:TestKeyStore.Builder
264 public Builder keyUsage(int keyUsage) { argument
265 this.keyUsage = keyUsage;
415 x509c = createCertificate(publicKey, signingKey, subject, issuer, keyUsage, ca,
472 int keyUsage,
513 if (keyUsage != 0) {
516 new KeyUsage(keyUsage));
467 createCertificate( PublicKey publicKey, PrivateKey privateKey, X500Principal subject, X500Principal issuer, int keyUsage, boolean ca, List<GeneralName> subjectAltNames, Vector<GeneralSubtree> permittedNameConstraints, Vector<GeneralSubtree> excludedNameConstraints) argument
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DCipherTest.java832 private void assertCipherInitWithKeyUsage (int keyUsage, argument
837 Certificate certificate = certificateWithKeyUsage(keyUsage);
877 private Certificate certificateWithKeyUsage(int keyUsage) throws Exception { argument
878 // note the rare usage of non-zero keyUsage
881 .keyUsage(keyUsage)
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CertSelectorTest.java475 assertTrue("The returned keyUsage should be equal to specified", Arrays
1132 + "keyUsage criteria.", selector.match(cert1)
1139 assertTrue("The certificate which does not have a keyUsage extension "
1140 + "implicitly allows all keyUsage values.", selector
1705 protected boolean[] keyUsage = null; field in class:X509CertSelectorTest.TestCert
1770 public TestCert(boolean[] keyUsage) { argument
1771 setKeyUsage(keyUsage);
1799 public void setKeyUsage(boolean[] keyUsage) { argument
1800 this.keyUsage = (keyUsage
[all...]

Completed in 2565 milliseconds