/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
KeyUsage.java | 30 * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 } 32 * KeyUsage ::= BIT STRING { 46 public final class KeyUsage extends ExtensionValue { 62 private final boolean[] keyUsage; 67 public KeyUsage(byte[] encoding) throws IOException { 69 this.keyUsage = (boolean[]) ASN1.decode(encoding); 73 return keyUsage; 78 encoding = ASN1.encode(keyUsage); 84 sb.append(prefix).append("KeyUsage [\n"); 85 for (int i = 0; i < keyUsage.length; i++) [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherTest.java | 19 import com.android.org.bouncycastle.asn1.x509.KeyUsage; 33 assertCipherInitWithKeyUsage(KeyUsage.digitalSignature, false, true, false, true); 34 assertCipherInitWithKeyUsage(KeyUsage.nonRepudiation, false, true, false, true); 35 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement, false, true, false, true); 36 assertCipherInitWithKeyUsage(KeyUsage.keyCertSign, false, true, false, true); 37 assertCipherInitWithKeyUsage(KeyUsage.cRLSign, false, true, false, true); 45 assertCipherInitWithKeyUsage(KeyUsage.encipherOnly, false, true, false, true); 46 assertCipherInitWithKeyUsage(KeyUsage.decipherOnly, false, true, false, true); 47 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement | KeyUsage.encipherOnly [all...] |
/libcore/luni/src/main/java/java/security/cert/ |
X509CertSelector.java | 63 private boolean[] keyUsage; 550 * Sets the criterion for the {@literal KeyUsage} extension. 552 * @param keyUsage 557 public void setKeyUsage(boolean[] keyUsage) { 558 if (keyUsage == null) { 559 this.keyUsage = null; 562 this.keyUsage = new boolean[keyUsage.length]; 563 System.arraycopy(keyUsage, 0, this.keyUsage, 0, keyUsage.length) [all...] |
/external/openssl/android.testssl/ |
Uss.cnf | 34 keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
CAss.cnf | 75 keyUsage = cRLSign, keyCertSign
|
/libcore/luni/src/main/java/java/security/ |
Signature.java | 245 //KeyUsage OID = 2.5.29.15 251 boolean[] keyUsage = ((X509Certificate) certificate) 258 // KeyUsage ::= BIT STRING { digitalSignature (0), <skipped> } 259 if ((keyUsage != null) && (!keyUsage[0])) { // digitalSignature
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/ |
X509Extension.java | 29 public static final ASN1ObjectIdentifier keyUsage = new ASN1ObjectIdentifier("2.5.29.15");
|
/libcore/luni/src/main/java/javax/crypto/ |
Cipher.java | 794 if (oid.equals("2.5.29.15")) { // KeyUsage OID = 2.5.29.15 800 boolean[] keyUsage = ((X509Certificate) certificate).getKeyUsage(); [all...] |
/libcore/support/src/test/java/libcore/java/security/ |
TestKeyStore.java | 24 import com.android.org.bouncycastle.asn1.x509.KeyUsage; 222 private int keyUsage; 263 /** {@link KeyUsage} bit mask for 2.5.29.15 extension */ 264 public Builder keyUsage(int keyUsage) { 265 this.keyUsage = keyUsage; 415 x509c = createCertificate(publicKey, signingKey, subject, issuer, keyUsage, ca, 472 int keyUsage, 513 if (keyUsage != 0) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
X509CertificateObject.java | 49 import org.bouncycastle.asn1.x509.KeyUsage; 64 private boolean[] keyUsage; 100 keyUsage = new boolean[(length < 9) ? 9 : length]; 104 keyUsage[i] = (bytes[i / 8] & (0x80 >>> (i % 8))) != 0; 109 keyUsage = null; 114 throw new CertificateParsingException("cannot construct KeyUsage: " + e); 321 return keyUsage; 675 else if (oid.equals(X509Extensions.KeyUsage)) 677 buf.append(new KeyUsage((DERBitString)dIn.readObject())).append(nl);
|
/external/apache-harmony/security/src/test/impl/java.injected/java/security/cert/ |
X509CertSelectorTest.java | 101 protected boolean[] keyUsage = null; 153 public TestCert(boolean[] keyUsage) { 154 setKeyUsage(keyUsage); 179 public void setKeyUsage(boolean[] keyUsage) { 180 this.keyUsage = (keyUsage == null) ? null 181 : (boolean[]) keyUsage.clone(); 324 return keyUsage; [all...] |
/external/openssl/apps/ |
openssl.cnf | 187 # This is typical in keyUsage for a client certificate. 188 # keyUsage = nonRepudiation, digitalSignature, keyEncipherment 222 keyUsage = nonRepudiation, digitalSignature, keyEncipherment 245 # keyUsage = cRLSign, keyCertSign 292 # This is typical in keyUsage for a client certificate. 293 # keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
/libcore/luni/src/test/java/tests/security/cert/ |
X509CertSelectorTest.java | 475 assertTrue("The returned keyUsage should be equal to specified", Arrays [all...] |
/prebuilts/sdk/10/ |
android.jar | |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/13/ |
android.jar | |
/prebuilts/sdk/16/ |
android.jar | |
/prebuilts/sdk/5/ |
android.jar | |
/prebuilts/sdk/7/ |
android.jar | |
/prebuilts/sdk/8/ |
android.jar | |
/prebuilts/sdk/9/ |
android.jar | |