Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 75) sorted by relevance

123

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParametersTest.java98 AlgorithmParameters params = new DummyAlgorithmParameters(paramSpi, p, in test_getEncoded() local
105 params.getEncoded(); in test_getEncoded()
114 params.init(new MyAlgorithmParameterSpec()); in test_getEncoded()
115 assertSame(enc, params.getEncoded()); in test_getEncoded()
134 AlgorithmParameters params = new DummyAlgorithmParameters(paramSpi, p, in test_getEncodedLjava_lang_String() local
141 params.getEncoded(strFormatParam); in test_getEncodedLjava_lang_String()
150 params.init(new MyAlgorithmParameterSpec()); in test_getEncodedLjava_lang_String()
151 assertSame(enc, params.getEncoded(strFormatParam)); in test_getEncodedLjava_lang_String()
164 params = new DummyAlgorithmParameters(paramSpi, p, "algorithm"); in test_getEncodedLjava_lang_String()
165 params.init(new MyAlgorithmParameterSpec()); in test_getEncodedLjava_lang_String()
[all …]
DKeyPairGenerator4Test.java114 DSAParams params = key.getParams(); in test_initializeLjava_security_spec_AlgorithmParameterSpec() local
117 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(), in test_initializeLjava_security_spec_AlgorithmParameterSpec()
118 params.getG())); in test_initializeLjava_security_spec_AlgorithmParameterSpec()
132 DSAParams params = key.getParams(); in test_initializeLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom() local
135 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(), in test_initializeLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom()
136 params.getG()), new SecureRandom()); in test_initializeLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom()
/libcore/luni/src/main/java/java/security/spec/
DECPrivateKeySpec.java29 private final ECParameterSpec params; field in ECPrivateKeySpec
40 public ECPrivateKeySpec(BigInteger s, ECParameterSpec params) { in ECPrivateKeySpec() argument
42 this.params = params; in ECPrivateKeySpec()
47 if (this.params == null) { in ECPrivateKeySpec()
58 return params; in getParams()
DECPublicKeySpec.java27 private final ECParameterSpec params; field in ECPublicKeySpec
40 public ECPublicKeySpec(ECPoint w, ECParameterSpec params) { in ECPublicKeySpec() argument
42 this.params = params; in ECPublicKeySpec()
47 if (this.params == null) { in ECPublicKeySpec()
62 return params; in getParams()
/libcore/luni/src/test/java/tests/security/interfaces/
DDSAParamsTest.java35 DSAParams params = new DSAParameterSpec(p, q, g); in test_getG() local
36 assertEquals("Invalid G", g, params.getG()); in test_getG()
44 DSAParams params = new DSAParameterSpec(p, q, g); in test_getP() local
45 assertEquals("Invalid P", p, params.getP()); in test_getP()
53 DSAParams params = new DSAParameterSpec(p, q, g); in test_getQ() local
54 assertEquals("Invalid Q", q, params.getQ()); in test_getQ()
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertificateTest.java632 PKIXParameters params = createPKIXParams(); in testVerifyMD2_chain() local
634 CertPathValidatorResult res = certPathValidator.validate(path, params); in testVerifyMD2_chain()
640 params.getTrustAnchors().contains(r.getTrustAnchor())); in testVerifyMD2_chain()
646 params = createPKIXParams(); in testVerifyMD2_chain()
649 res = certPathValidator.validate(path, params); in testVerifyMD2_chain()
654 params.getTrustAnchors().contains(r.getTrustAnchor())); in testVerifyMD2_chain()
657 certPathValidator.validate(path, params); in testVerifyMD2_chain()
671 PKIXParameters params = createPKIXParams(); in testVerifyMD5_chain() local
673 CertPathValidatorResult res = certPathValidator.validate(path, params); in testVerifyMD5_chain()
679 params.getTrustAnchors().contains(r.getTrustAnchor())); in testVerifyMD5_chain()
[all …]
DCertPathValidatorTestPKIX.java42 private PKIXParameters params; field in CertPathValidatorTestPKIX
88 params = new PKIXParameters(keyStore); in setUp()
89 params.setRevocationEnabled(false); in setUp()
94 return params; in getParams()
/libcore/luni/src/test/java/tests/security/spec/
DECPublicKeySpecTest.java31 ECParameterSpec params; field in ECPublicKeySpecTest
43 params = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1); in setUp()
44 ecpks = new ECPublicKeySpec(w, params); in setUp()
49 params = null; in tearDown()
64 assertEquals("wrong params value", params, ecpks.getParams()); in test_constructorLjava_security_spec_ECPointLjava_security_spec_ECParameterSpec()
69 new ECPublicKeySpec(null, params); in test_constructorLjava_security_spec_ECPointLjava_security_spec_ECParameterSpec()
95 assertEquals("wrong params value", params, ecpks.getParams()); in testGetParams()
/libcore/luni/src/main/java/java/security/cert/
DCertStore.java73 CertStoreParameters params) { in CertStore() argument
77 this.certStoreParams = params; in CertStore()
97 public static CertStore getInstance(String type, CertStoreParameters params) in getInstance() argument
103 Engine.SpiAndProvider sap = ENGINE.getInstance(type, params); in getInstance()
104 return new CertStore((CertStoreSpi) sap.spi, sap.provider, type, params); in getInstance()
139 CertStoreParameters params, String provider) in getInstance() argument
149 return getInstance(type, params, impProvider); in getInstance()
174 CertStoreParameters params, Provider provider) in getInstance() argument
183 Object spi = ENGINE.getInstance(type, provider, params); in getInstance()
184 return new CertStore((CertStoreSpi) spi, provider, type, params); in getInstance()
/libcore/libart/src/main/java/java/lang/reflect/
DArtMethod.java104 public static boolean equalConstructorParameters(ArtMethod artMethod, Class<?>[] params) { in equalConstructorParameters() argument
107 if (types.length != params.length) { in equalConstructorParameters()
111 if (artMethod.getDexCacheType(dex, types[i]) != params[i]) { in equalConstructorParameters()
123 public static boolean equalMethodParameters(ArtMethod artMethod, Class<?>[] params) { in equalMethodParameters() argument
124 return equalConstructorParameters(artMethod.findOverriddenMethodIfProxy(), params); in equalMethodParameters()
153 int compareParameters(Class<?>[] params) { in compareParameters() argument
156 int length = Math.min(types.length, params.length); in compareParameters()
159 Class<?> bType = params[i]; in compareParameters()
167 return types.length - params.length; in compareParameters()
/libcore/luni/src/main/java/java/util/logging/
DFormatter.java75 Object[] params = r.getParameters(); in formatMessage() local
80 if (pattern.indexOf("{0") >= 0 && params != null && params.length > 0) { in formatMessage()
82 pattern = MessageFormat.format(pattern, params); in formatMessage()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DExemptionMechanismSpiTest.java72 …protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, Inva… in engineInit() argument
73 super.engineInit(key, params); in engineInit()
78 …protected void engineInit(Key key, AlgorithmParameters params) throws InvalidKeyException, Invalid… in engineInit() argument
79 super.engineInit(key, params); in engineInit()
99 AlgorithmParameters params = null; in testExemptionMechanismSpi01() local
107 emSpi.engineInit(key, params); in testExemptionMechanismSpi01()
123 emSpi.engineInit(key, params); in testExemptionMechanismSpi01()
DMacSpiTest.java57 …protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, Inva… in engineInit() argument
58 super.engineInit(key, params); in engineInit()
91 …protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, Inva… in engineInit() argument
92 super.engineInit(key, params); in engineInit()
130 …protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, Inva… in engineInit() argument
131 super.engineInit(key, params); in engineInit()
238 protected void engineInit(Key key, AlgorithmParameterSpec params) in engineInit() argument
DKeyAgreementSpiTest.java76 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit() argument
78 super.engineInit(key, params, random); in engineInit()
113 AlgorithmParameterSpec params = null; in testKeyAgreementSpi01() local
115 kaSpi.engineInit(key, params, new SecureRandom()); in testKeyAgreementSpi01()
/libcore/luni/src/test/java/tests/security/cert/
DCertPathValidatorSpiTest.java48 CertPathParameters params = null; in testCertPathValidatorSpi01() local
51 certPath, params); in testCertPathValidatorSpi01()
54 certPathValid.engineValidate(certPath, params); in testCertPathValidatorSpi01()
59 certPathValid.engineValidate(certPath, params); in testCertPathValidatorSpi01()
/libcore/luni/src/test/java/tests/security/
DCertPathBuilderTest.java26 private CertPathParameters params; field in CertPathBuilderTest
36 params = getCertPathParameters(); in setUp()
46 CertPathBuilderResult builderResult = pathBuilder.build(params); in testCertPathBuilder()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertStoreSpi.java43 public MyCertStoreSpi(CertStoreParameters params) in MyCertStoreSpi() argument
45 super(params); in MyCertStoreSpi()
46 if (!(params instanceof MyCertStoreParameters)) { in MyCertStoreSpi()
DMyCertPathBuilderSpi.java39 public CertPathBuilderResult engineBuild(CertPathParameters params) in engineBuild() argument
42 if ((params == null) && ((swi %2 ) != 0)) { in engineBuild()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyExemptionMechanismSpi.java77 protected void engineInit(Key key, AlgorithmParameters params) in engineInit() argument
86 if (params == null) { in engineInit()
92 protected void engineInit(Key key, AlgorithmParameterSpec params) in engineInit() argument
101 if (params == null) { in engineInit()
/libcore/luni/src/main/java/java/security/
DPolicy.java33 …public static Policy getInstance(String type, Policy.Parameters params) throws NoSuchAlgorithmExce… in getInstance() argument
35 …public static Policy getInstance(String type, Policy.Parameters params, String provider) throws No… in getInstance() argument
37 …public static Policy getInstance(String type, Policy.Parameters params, Provider provider) throws … in getInstance() argument
DAlgorithmParameters.java210 public final void init(byte[] params) throws IOException { in init() argument
214 spiImpl.engineInit(params); in init()
230 public final void init(byte[] params, String format) throws IOException { in init() argument
234 spiImpl.engineInit(params, format); in init()
DAlgorithmParametersSpi.java57 protected abstract void engineInit(byte[] params) throws IOException; in engineInit() argument
71 protected abstract void engineInit(byte[] params, String format) in engineInit() argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/
DDSAKeyPairGeneratorImpl.java46 public void initialize(DSAParams params, SecureRandom random) in initialize() argument
51 if (params == null) { in initialize()
55 dsaParams = params; in initialize()
/libcore/luni/src/main/java/javax/crypto/
DKeyGenerator.java187 public final void init(AlgorithmParameterSpec params) in init() argument
189 spiImpl.engineInit(params, RANDOM);//new SecureRandom()); in init()
204 public final void init(AlgorithmParameterSpec params, SecureRandom random) in init() argument
206 spiImpl.engineInit(params, random); in init()
DSealedObject.java175 AlgorithmParameters params = AlgorithmParameters.getInstance(paramsAlg); in getObject() local
176 params.init(encodedParams); in getObject()
177 cipher.init(Cipher.DECRYPT_MODE, key, params); in getObject()
263 AlgorithmParameters params = AlgorithmParameters.getInstance(paramsAlg); in getObject() local
264 params.init(encodedParams); in getObject()
265 cipher.init(Cipher.DECRYPT_MODE, key, params); in getObject()

123