/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | AlgorithmChecker.java | 213 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()
|
D | RevocationChecker.java | 779 boolean[] keyUsage = cert.getKeyUsage(); 780 if (keyUsage != null) { 781 return keyUsage[6];
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | NetscapeCertTypeExtension.java | 310 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/ |
D | X509CertSelector.java | 107 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/ |
D | TestKeyStore.java | 361 private int keyUsage; field in TestKeyStore.Builder 409 public Builder keyUsage(int keyUsage) { in keyUsage() argument 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/ |
D | default.cnf | 181 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/ |
D | SignerInfo.java | 454 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/ |
D | X509CertSelectorTest.java | 1610 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()
|