Home
last modified time | relevance | path

Searched refs:keyUsage (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DAlgorithmChecker.java213 boolean[] keyUsage = ((X509Certificate) cert).getKeyUsage(); in check()
214 if (keyUsage != null && keyUsage.length < 9) { in check()
223 if (keyUsage != null) { in check()
226 if (keyUsage[0] || keyUsage[1] || keyUsage[5] || keyUsage[6]) { in check()
234 if (keyUsage[2]) { // KeyUsage.keyEncipherment in check()
238 if (keyUsage[3]) { // KeyUsage.dataEncipherment in check()
242 if (keyUsage[4]) { // KeyUsage.keyAgreement in check()
DRevocationChecker.java779 boolean[] keyUsage = cert.getKeyUsage();
780 if (keyUsage != null) {
781 return keyUsage[6];
/libcore/ojluni/src/main/java/sun/security/x509/
DNetscapeCertTypeExtension.java310 KeyUsageExtension keyUsage = new KeyUsageExtension(); in getKeyUsageMappedBits() local
317 keyUsage.set(KeyUsageExtension.DIGITAL_SIGNATURE, val); in getKeyUsageMappedBits()
320 keyUsage.set(KeyUsageExtension.KEY_ENCIPHERMENT, val); in getKeyUsageMappedBits()
325 keyUsage.set(KeyUsageExtension.KEY_CERTSIGN, val); in getKeyUsageMappedBits()
327 return keyUsage.getBits(); in getKeyUsageMappedBits()
/libcore/ojluni/src/main/java/java/security/cert/
DX509CertSelector.java107 private boolean[] keyUsage; field in X509CertSelector
589 public void setKeyUsage(boolean[] keyUsage) { in setKeyUsage() argument
590 if (keyUsage == null) { in setKeyUsage()
591 this.keyUsage = null; in setKeyUsage()
593 this.keyUsage = keyUsage.clone(); in setKeyUsage()
1546 if (keyUsage == null) { in getKeyUsage()
1549 return keyUsage.clone(); in getKeyUsage()
1865 if (keyUsage != null) { in toString()
1866 sb.append(" Key Usage: " + keyUsageToString(keyUsage) + "\n"); in toString()
2260 if (keyUsage == null) { in matchKeyUsage()
[all …]
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java361 private int keyUsage; field in TestKeyStore.Builder
409 public Builder keyUsage(int keyUsage) { in keyUsage() method in TestKeyStore.Builder
410 this.keyUsage = keyUsage; in keyUsage()
614 x509c = createCertificate(publicKey, signingKey, subject, issuer, keyUsage, ca, in createKeys()
672 int keyUsage, in createCertificate() argument
717 if (keyUsage != 0) { in createCertificate()
718 x509cg.addExtension(Extension.keyUsage, in createCertificate()
720 new KeyUsage(keyUsage)); in createCertificate()
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf181 keyUsage = critical, decipherOnly, keyAgreement
184 keyUsage=ASN1:FORMAT:BITLIST,BITSTRING:0,1,2,3,4,5,6,7,8,9,10
188 keyUsage = encipherOnly, keyEncipherment, dataEncipherment, keyCertSign, cRLSign, cRLSign, keyEncip…
218 keyUsage = nonRepudiation, digitalSignature, keyEncipherment
282 keyUsage = nonRepudiation, digitalSignature, keyEncipherment
/libcore/ojluni/src/main/java/sun/security/pkcs/
DSignerInfo.java454 KeyUsageExtension keyUsage; in verify() local
460 keyUsage = new KeyUsageExtension(keyUsageBits); in verify()
466 boolean digSigAllowed = keyUsage.get( in verify()
469 boolean nonRepuAllowed = keyUsage.get( in verify()
/libcore/luni/src/test/java/tests/security/cert/
DX509CertSelectorTest.java1610 protected boolean[] keyUsage = null; field in X509CertSelectorTest.TestCert
1669 public TestCert(boolean[] keyUsage) { in TestCert() argument
1670 setKeyUsage(keyUsage); in TestCert()
1697 public void setKeyUsage(boolean[] keyUsage) { in setKeyUsage() argument
1698 this.keyUsage = (keyUsage == null) ? null : (boolean[]) keyUsage.clone(); in setKeyUsage()
1839 return keyUsage; in getKeyUsage()