Home
last modified time | relevance | path

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

12345

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParametersTest.java98 AlgorithmParameters params = new FakeAlgorithmParameters(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 FakeAlgorithmParameters(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 FakeAlgorithmParameters(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/ojluni/src/main/java/sun/security/provider/certpath/
DPKIX.java51 static ValidatorParams checkParams(CertPath cp, CertPathParameters params) in checkParams() argument
54 if (!(params instanceof PKIXParameters)) { in checkParams()
58 return new ValidatorParams(cp, (PKIXParameters)params); in checkParams()
61 static BuilderParams checkBuilderParams(CertPathParameters params) in checkBuilderParams() argument
64 if (!(params instanceof PKIXBuilderParameters)) { in checkBuilderParams()
68 return new BuilderParams((PKIXBuilderParameters)params); in checkBuilderParams()
77 private final PKIXParameters params; field in PKIX.ValidatorParams
89 ValidatorParams(CertPath cp, PKIXParameters params) in ValidatorParams() argument
92 this(params); in ValidatorParams()
100 ValidatorParams(PKIXParameters params) in ValidatorParams() argument
[all …]
DPKIXCertPathValidator.java75 CertPathParameters params) in engineValidate() argument
78 ValidatorParams valParams = PKIX.checkParams(cp, params); in engineValidate()
82 private static PKIXCertPathValidatorResult validate(ValidatorParams params) in validate() argument
91 List<X509Certificate> certList = params.certificates(); in validate()
114 for (TrustAnchor anchor : params.trustAnchors()) { in validate()
140 return validate(anchor, params); in validate()
159 ValidatorParams params) in validate() argument
171 int certPathLen = params.certificates().size(); in validate()
180 params.targetCertConstraints())); in validate()
186 PolicyChecker pc = new PolicyChecker(params.initialPolicies(), in validate()
[all …]
DURICertStore.java157 URICertStore(CertStoreParameters params) in URICertStore() argument
159 super(params); in URICertStore()
160 if (!(params instanceof URICertStoreParameters)) { in URICertStore()
164 this.uri = ((URICertStoreParameters) params).uri; in URICertStore()
189 static synchronized CertStore getInstance(URICertStoreParameters params) in getInstance() argument
192 debug.println("CertStore URI:" + params.uri); in getInstance()
194 CertStore ucs = certStoreCache.get(params); in getInstance()
196 ucs = new UCS(new URICertStore(params), null, "URI", params); in getInstance()
197 certStoreCache.put(params, ucs); in getInstance()
461 URICertStoreParameters params = (URICertStoreParameters) obj; in equals() local
[all …]
/libcore/luni/src/test/java/libcore/java/security/spec/
DAlgorithmParametersPSSTest.java62 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testGetInstance() local
63 assertNotNull(params); in testGetInstance()
67 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testGetAlgorithm() local
68 assertEquals("PSS", params.getAlgorithm()); in testGetAlgorithm()
72 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testGetProvider() local
73 params.init(DEFAULT_SPEC); in testGetProvider()
74 assertNotNull(params.getProvider()); in testGetProvider()
78 AlgorithmParameters params = AlgorithmParameters.getInstance("PSS"); in testInitFailsWhenAlreadyInitialized() local
79 params.init(DEFAULT_SPEC); in testInitFailsWhenAlreadyInitialized()
81 params.init(DEFAULT_SPEC); in testInitFailsWhenAlreadyInitialized()
[all …]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLParametersTest.java34 SSLParameters params = new SSLParameters(); in applicationProtocols() local
36 params.setApplicationProtocols(null); in applicationProtocols()
41 params.setApplicationProtocols(new String[] {""}); in applicationProtocols()
46 params.setApplicationProtocols(new String[] {null}); in applicationProtocols()
51 params.setApplicationProtocols(new String[] {"h2", ""}); in applicationProtocols()
56 params.setApplicationProtocols(new String[] {"h2", null}); in applicationProtocols()
63 params.setApplicationProtocols(protocols); in applicationProtocols()
64 assertTrue(Arrays.equals(new String[] {"h2"}, params.getApplicationProtocols())); in applicationProtocols()
66 assertTrue(Arrays.equals(new String[] {"h2"}, params.getApplicationProtocols())); in applicationProtocols()
67 protocols = params.getApplicationProtocols(); in applicationProtocols()
[all …]
/libcore/ojluni/src/main/java/java/security/cert/
DCertStore.java113 private CertStoreParameters params; field in CertStore
125 String type, CertStoreParameters params) { in CertStore() argument
129 if (params != null) in CertStore()
130 this.params = (CertStoreParameters) params.clone(); in CertStore()
233 public static CertStore getInstance(String type, CertStoreParameters params) in getInstance() argument
238 CertStoreSpi.class, type, params); in getInstance()
240 instance.provider, type, params); in getInstance()
303 CertStoreParameters params, String provider) in getInstance() argument
308 CertStoreSpi.class, type, params, provider); in getInstance()
310 instance.provider, type, params); in getInstance()
[all …]
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLSocket.java1386 SSLParameters params = new SSLParameters(); in getSSLParameters() local
1387 params.setCipherSuites(getEnabledCipherSuites()); in getSSLParameters()
1388 params.setProtocols(getEnabledProtocols()); in getSSLParameters()
1390 params.setNeedClientAuth(true); in getSSLParameters()
1392 params.setWantClientAuth(true); in getSSLParameters()
1394 return params; in getSSLParameters()
1422 public void setSSLParameters(SSLParameters params) { in setSSLParameters() argument
1424 s = params.getCipherSuites(); in setSSLParameters()
1428 s = params.getProtocols(); in setSSLParameters()
1432 if (params.getNeedClientAuth()) { in setSSLParameters()
[all …]
DSSLEngine.java1885 SSLParameters params = new SSLParameters(); in getSSLParameters() local
1886 params.setCipherSuites(getEnabledCipherSuites()); in getSSLParameters()
1887 params.setProtocols(getEnabledProtocols()); in getSSLParameters()
1889 params.setNeedClientAuth(true); in getSSLParameters()
1891 params.setWantClientAuth(true); in getSSLParameters()
1893 return params; in getSSLParameters()
1921 public void setSSLParameters(SSLParameters params) { in setSSLParameters() argument
1923 s = params.getCipherSuites(); in setSSLParameters()
1927 s = params.getProtocols(); in setSSLParameters()
1931 if (params.getNeedClientAuth()) { in setSSLParameters()
[all …]
DSSLServerSocket.java526 public void setSSLParameters(SSLParameters params) { in setSSLParameters() argument
528 s = params.getCipherSuites(); in setSSLParameters()
533 s = params.getProtocols(); in setSSLParameters()
538 if (params.getNeedClientAuth()) { in setSSLParameters()
540 } else if (params.getWantClientAuth()) { in setSSLParameters()
DSSLContextSpi.java193 SSLParameters params = new SSLParameters(); in engineGetSupportedSSLParameters() local
194 params.setCipherSuites(socket.getSupportedCipherSuites()); in engineGetSupportedSSLParameters()
195 params.setProtocols(socket.getSupportedProtocols()); in engineGetSupportedSSLParameters()
196 return params; in engineGetSupportedSSLParameters()
/libcore/ojluni/src/main/java/java/security/spec/
DECPrivateKeySpec.java43 private ECParameterSpec params; field in ECPrivateKeySpec
54 public ECPrivateKeySpec(BigInteger s, ECParameterSpec params) { in ECPrivateKeySpec() argument
58 if (params == null) { in ECPrivateKeySpec()
62 this.params = params; in ECPrivateKeySpec()
79 return params; in getParams()
DECPublicKeySpec.java42 private ECParameterSpec params; field in ECPublicKeySpec
55 public ECPublicKeySpec(ECPoint w, ECParameterSpec params) { in ECPublicKeySpec() argument
59 if (params == null) { in ECPublicKeySpec()
66 this.params = params; in ECPublicKeySpec()
83 return params; in getParams()
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertificateTest.java640 PKIXParameters params = createPKIXParams(); in testVerifyMD2_chain() local
642 CertPathValidatorResult res = certPathValidator.validate(path, params); in testVerifyMD2_chain()
648 params.getTrustAnchors().contains(r.getTrustAnchor())); in testVerifyMD2_chain()
654 params = createPKIXParams(); in testVerifyMD2_chain()
657 res = certPathValidator.validate(path, params); in testVerifyMD2_chain()
662 params.getTrustAnchors().contains(r.getTrustAnchor())); in testVerifyMD2_chain()
665 certPathValidator.validate(path, params); in testVerifyMD2_chain()
679 PKIXParameters params = createPKIXParams(); in testVerifyMD5_chain() local
681 CertPathValidatorResult res = certPathValidator.validate(path, params); in testVerifyMD5_chain()
687 params.getTrustAnchors().contains(r.getTrustAnchor())); in testVerifyMD5_chain()
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractPoller.java161 private final Object[] params; field in AbstractPoller.Request
166 Request(RequestType type, Object... params) { in Request() argument
168 this.params = params; in Request()
176 return params; in parameters()
211 private Object invoke(RequestType type, Object... params) throws IOException { in invoke() argument
213 Request req = new Request(type, params); in invoke()
254 Object[] params = req.parameters(); in processRequests() local
255 Path path = (Path)params[0]; in processRequests()
257 (Set<? extends WatchEvent.Kind<?>>)params[1]; in processRequests()
259 (WatchEvent.Modifier[])params[2]; in processRequests()
[all …]
/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/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/test/java/libcore/javax/crypto/
DMockCipherSpi.java110 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit() argument
116 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit() argument
130 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit() argument
136 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit() argument
150 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit() argument
156 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit() argument
172 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit() argument
180 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit() argument
240 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit() argument
243 checkAlgorithmParameterSpec(params); in engineInit()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DKeyUtil.java82 ECParameterSpec params = pubk.getParams(); in getKeySize() local
88 if (params != null) { in getKeySize()
89 size = params.getOrder().bitLength(); in getKeySize()
94 DSAParams params = pubk.getParams(); // params can be null in getKeySize() local
95 size = (params != null) ? params.getP().bitLength() : -1; in getKeySize()
/libcore/ojluni/src/main/java/sun/security/x509/
DAlgorithmId.java78 protected DerValue params; field in AlgorithmId
110 private AlgorithmId(ObjectIdentifier oid, DerValue params) in AlgorithmId() argument
113 this.params = params; in AlgorithmId()
114 if (this.params != null) { in AlgorithmId()
133 algParams.init(params.toByteArray()); in decodeParams()
160 params = new DerValue(algParams.getEncoded()); in derEncode()
162 params = null; in derEncode()
165 if (params == null) { in derEncode()
194 bytes.putDerValue(params); in derEncode()
234 if ((params != null) && algid.equals((Object)specifiedWithECDSA_oid)) { in getName()
[all …]
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java313 public void severe(String msg, Object... params) { in severe() argument
314 loggerProxy.doLog(Level.SEVERE, msg, params); in severe()
328 public void warning(String msg, Object... params) { in warning() argument
329 loggerProxy.doLog(Level.WARNING, msg, params); in warning()
343 public void info(String msg, Object... params) { in info() argument
344 loggerProxy.doLog(Level.INFO, msg, params); in info()
358 public void config(String msg, Object... params) { in config() argument
359 loggerProxy.doLog(Level.CONFIG, msg, params); in config()
373 public void fine(String msg, Object... params) { in fine() argument
374 loggerProxy.doLog(Level.FINE, msg, params); in fine()
[all …]
/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()
/libcore/ojluni/src/main/java/javax/crypto/
DKeyAgreement.java373 AlgorithmParameterSpec params, SecureRandom random) in implInit() argument
378 spi.engineInit(key, params, random); in implInit()
383 AlgorithmParameterSpec params, SecureRandom random) in chooseProvider() argument
389 implInit(spi, initType, key, params, random); in chooseProvider()
404 implInit(spi, initType, key, params, random); in chooseProvider()
540 public final void init(Key key, AlgorithmParameterSpec params) in init() argument
543 init(key, params, JceSecurity.RANDOM); in init()
562 public final void init(Key key, AlgorithmParameterSpec params, in init() argument
567 spi.engineInit(key, params, random); in init()
569 chooseProvider(I_PARAMS, key, params, random); in init()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeBuilderTest.java60 Object[][] params = new Object[ls.size() * ms.size()][]; in createNodeBuilders() local
64 params[i++] = new Object[]{l, m}; in createNodeBuilders()
68 return params; in createNodeBuilders()
105 Object[][] params = new Object[ls.size() * ms.size()][]; in createIntNodeBuilders() local
109 params[i++] = new Object[]{l, m}; in createIntNodeBuilders()
113 return params; in createIntNodeBuilders()
155 Object[][] params = new Object[ls.size() * ms.size()][]; in createLongNodeBuilders() local
159 params[i++] = new Object[]{l, m}; in createLongNodeBuilders()
163 return params; in createLongNodeBuilders()
205 Object[][] params = new Object[ls.size() * ms.size()][]; in createDoubleNodeBuilders() local
[all …]

12345