Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 248) sorted by relevance

12345678910

/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java44 private static int indexOfBangSlash(String spec) { in indexOfBangSlash() argument
45 int indexOfBang = spec.length(); in indexOfBangSlash()
46 while((indexOfBang = spec.lastIndexOf('!', indexOfBang)) != -1) { in indexOfBangSlash()
47 if ((indexOfBang != (spec.length() - 1)) && in indexOfBangSlash()
48 (spec.charAt(indexOfBang + 1) == '/')) { in indexOfBangSlash()
127 protected void parseURL(URL url, String spec, in parseURL() argument
132 int refPos = spec.indexOf('#', limit); in parseURL()
135 ref = spec.substring(refPos + 1, spec.length()); in parseURL()
145 if (spec.length() >= 4) { in parseURL()
146 absoluteSpec = spec.substring(0, 4).equalsIgnoreCase("jar:"); in parseURL()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DGCMParameterSpecTest.java17 package org.apache.harmony.crypto.tests.javax.crypto.spec;
21 import javax.crypto.spec.GCMParameterSpec;
77 GCMParameterSpec spec = new GCMParameterSpec(8, TEST_IV); in testGetIV_Success() local
79 byte[] actual = spec.getIV(); in testGetIV_Success()
88 Arrays.equals(spec.getIV(), actual)); in testGetIV_Success()
89 assertEquals(Arrays.toString(TEST_IV), Arrays.toString(spec.getIV())); in testGetIV_Success()
93 GCMParameterSpec spec = new GCMParameterSpec(8, TEST_IV, 2, 4); in testGetIV_Subarray_Success() local
95 Arrays.toString(spec.getIV())); in testGetIV_Subarray_Success()
99 GCMParameterSpec spec = new GCMParameterSpec(8, TEST_IV); in testGetTLen_Success() local
100 assertEquals(8, spec.getTLen()); in testGetTLen_Success()
DPBEParameterSpecTest.java23 package org.apache.harmony.crypto.tests.javax.crypto.spec;
26 import java.security.spec.AlgorithmParameterSpec;
27 import javax.crypto.spec.IvParameterSpec;
28 import javax.crypto.spec.PBEParameterSpec;
DOAEPParameterSpecTest.java23 package org.apache.harmony.crypto.tests.javax.crypto.spec;
25 import java.security.spec.MGF1ParameterSpec;
26 import java.security.spec.AlgorithmParameterSpec;
28 import javax.crypto.spec.OAEPParameterSpec;
29 import javax.crypto.spec.PSource;
/libcore/ojluni/annotations/hiddenapi/java/security/spec/
DECParameterSpec.java27 package java.security.spec;
32 public class ECParameterSpec implements java.security.spec.AlgorithmParameterSpec {
35 java.security.spec.EllipticCurve curve, in ECParameterSpec()
36 java.security.spec.ECPoint g, in ECParameterSpec()
42 public java.security.spec.EllipticCurve getCurve() { in getCurve()
46 public java.security.spec.ECPoint getGenerator() { in getGenerator()
68 private final java.security.spec.EllipticCurve curve;
76 private final java.security.spec.ECPoint g;
/libcore/ojluni/annotations/mmodule/java/security/spec/
DECParameterSpec.annotated.java27 package java.security.spec;
31 public class ECParameterSpec implements java.security.spec.AlgorithmParameterSpec {
33 public ECParameterSpec(java.security.spec.EllipticCurve curve, java.security.spec.ECPoint g, java.m… in ECParameterSpec()
35 public java.security.spec.EllipticCurve getCurve() { throw new RuntimeException("Stub!"); } in getCurve()
37 public java.security.spec.ECPoint getGenerator() { throw new RuntimeException("Stub!"); } in getGenerator()
/libcore/benchmarks/src/benchmarks/regression/
DSchemePrefixBenchmark.java28 @Override String execute(String spec) { in JAVA() argument
29 int colon = spec.indexOf(':'); in JAVA()
36 char c = spec.charAt(i); in JAVA()
42 return spec.substring(0, colon).toLowerCase(Locale.US); in JAVA()
59 @Override String execute(String spec) { in REGEX() argument
60 Matcher matcher = pattern.matcher(spec); in REGEX()
70 abstract String execute(String spec); in execute() argument
DCipherInputStreamBenchmark.java22 import java.security.spec.AlgorithmParameterSpec;
27 import javax.crypto.spec.IvParameterSpec;
55 private AlgorithmParameterSpec spec; field in CipherInputStreamBenchmark
63 spec = new IvParameterSpec(IV); in setUp()
66 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp()
71 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in timeEncrypt()
DCipherBenchmark.java21 import java.security.spec.AlgorithmParameterSpec;
27 import javax.crypto.spec.IvParameterSpec;
96 private AlgorithmParameterSpec spec; field in CipherBenchmark
124 spec = new IvParameterSpec(IV); in setUp()
128 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp()
131 cipherDecrypt.init(Cipher.DECRYPT_MODE, key, spec); in setUp()
/libcore/ojluni/src/main/java/java/net/
DJarURLConnection.java165 String spec = url.getFile(); in parseSpecs() local
167 int separator = spec.indexOf("!/"); in parseSpecs()
172 throw new MalformedURLException("no !/ found in url spec:" + spec); in parseSpecs()
175 jarFileURL = new URL(spec.substring(0, separator++)); in parseSpecs()
179 if (++separator != spec.length()) { in parseSpecs()
180 entryName = spec.substring(separator, spec.length()); in parseSpecs()
DURLStreamHandler.java122 protected void parseURL(URL u, String spec, int start, int limit) { in parseURL() argument
144 int queryStart = spec.indexOf('?'); in parseURL()
147 query = spec.substring(queryStart+1, limit); in parseURL()
150 spec = spec.substring(0, queryStart); in parseURL()
167 if (!isUNCName && (start <= limit - 2) && (spec.charAt(start) == '/') && in parseURL()
168 (spec.charAt(start + 1) == '/')) { in parseURL()
180 switch (spec.charAt(i)) { in parseURL()
190 host = authority = spec.substring(start, i); in parseURL()
284 if (spec.charAt(start) == '/' || spec.charAt(start) == '\\') { in parseURL()
285 path = spec.substring(start, limit); in parseURL()
[all …]
/libcore/luni/src/test/java/tests/security/spec/
DECPrivateKeySpecTest.java17 package tests.security.spec;
22 import java.security.spec.ECFieldF2m;
23 import java.security.spec.ECParameterSpec;
24 import java.security.spec.ECPoint;
25 import java.security.spec.ECPrivateKeySpec;
26 import java.security.spec.EllipticCurve;
DECPublicKeySpecTest.java17 package tests.security.spec;
22 import java.security.spec.ECFieldF2m;
23 import java.security.spec.ECParameterSpec;
24 import java.security.spec.ECPoint;
25 import java.security.spec.ECPublicKeySpec;
26 import java.security.spec.EllipticCurve;
DECParameterSpecTest.java17 package tests.security.spec;
22 import java.security.spec.ECFieldF2m;
23 import java.security.spec.ECParameterSpec;
24 import java.security.spec.ECPoint;
25 import java.security.spec.EllipticCurve;
DX509EncodedKeySpecTest.java23 package tests.security.spec;
27 import java.security.spec.EncodedKeySpec;
28 import java.security.spec.PKCS8EncodedKeySpec;
29 import java.security.spec.X509EncodedKeySpec;
DRSAPrivateKeySpecTest.java23 package tests.security.spec;
28 import java.security.spec.KeySpec;
29 import java.security.spec.RSAPrivateKeySpec;
DRSAKeyGenParameterSpecTest.java23 package tests.security.spec;
28 import java.security.spec.AlgorithmParameterSpec;
29 import java.security.spec.RSAKeyGenParameterSpec;
DDSAParameterSpecTest.java23 package tests.security.spec;
28 import java.security.spec.AlgorithmParameterSpec;
29 import java.security.spec.DSAParameterSpec;
DRSAPublicKeySpecTest.java23 package tests.security.spec;
28 import java.security.spec.KeySpec;
29 import java.security.spec.RSAPublicKeySpec;
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DTrustManagerFactorySpiImpl.java15 private static ManagerFactoryParameters spec = null; field in TrustManagerFactorySpiImpl
22 … public void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException { in engineInit() argument
24 this.spec = spec; in engineInit()
50 return spec; in getSpec()
DMyKeyManagerFactorySpi.java49 protected void engineInit(ManagerFactoryParameters spec) in engineInit() argument
51 if (spec == null) { in engineInit()
54 if (spec instanceof Parameters) { in engineInit()
56 engineInit(((Parameters)spec).getKeyStore(), in engineInit()
57 ((Parameters)spec).getPassword()); in engineInit()
DMyTrustManagerFactorySpi.java41 protected void engineInit(ManagerFactoryParameters spec) in engineInit() argument
43 if (spec == null) { in engineInit()
46 if (spec instanceof Parameters) { in engineInit()
48 engineInit(((Parameters)spec).getKeyStore()); in engineInit()
/libcore/luni/src/test/java/tests/security/interfaces/
DUtil.java19 import java.security.spec.ECFieldFp;
20 import java.security.spec.ECParameterSpec;
21 import java.security.spec.ECPoint;
22 import java.security.spec.EllipticCurve;
23 import java.security.spec.RSAPrivateCrtKeySpec;
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DSecretKeyFactoryThread.java18 import java.security.spec.KeySpec;
21 import javax.crypto.spec.DESKeySpec;
22 import javax.crypto.spec.DESedeKeySpec;
23 import javax.crypto.spec.PBEKeySpec;
/libcore/ojluni/src/main/java/java/security/
DKeyRep.java31 import java.security.spec.PKCS8EncodedKeySpec;
32 import java.security.spec.X509EncodedKeySpec;
33 import java.security.spec.InvalidKeySpecException;
36 import javax.crypto.spec.SecretKeySpec;

12345678910