/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | AlgorithmParametersTest.java | 98 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 …]
|
D | KeyPairGenerator4Test.java | 114 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/test/java/libcore/java/security/spec/ |
D | AlgorithmParametersPSSTest.java | 62 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/ojluni/src/main/java/sun/security/provider/certpath/ |
D | PKIX.java | 51 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 …]
|
D | PKIXCertPathValidator.java | 75 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 …]
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLParametersTest.java | 34 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/luni/src/test/java/tests/targets/security/cert/ |
D | CertificateTest.java | 176 PKIXParameters params = createPkixParams(md5ChainRoot); in verifyMd5Chain_rootNotIncluded() local 177 backdate(params, 2016); in verifyMd5Chain_rootNotIncluded() 179 validate(path, certPathValidator, params); in verifyMd5Chain_rootNotIncluded() 190 PKIXParameters params = createPkixParams(md5ChainRoot); in verifyMd5Chain_rootIncluded() local 191 backdate(params, 2016); in verifyMd5Chain_rootIncluded() 193 validate(path, certPathValidator, params); in verifyMd5Chain_rootIncluded() 204 PKIXParameters params = createPkixParams(md5ChainRoot); in verifyMd5ChainExceptionWhenUnsupported() local 205 backdate(params, 2016); in verifyMd5ChainExceptionWhenUnsupported() 208 () -> validate(path, certPathValidator, params)); in verifyMd5ChainExceptionWhenUnsupported() 222 PKIXParameters params = createPkixParams(sha1ChainRoot); in verifySha1Chain_rootNotIncluded() local [all …]
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertStore.java | 105 private CertStoreParameters params; field in CertStore 117 String type, CertStoreParameters params) { in CertStore() argument 121 if (params != null) in CertStore() 122 this.params = (CertStoreParameters) params.clone(); in CertStore() 235 public static CertStore getInstance(String type, CertStoreParameters params) in getInstance() argument 241 CertStoreSpi.class, type, params); in getInstance() 243 instance.provider, type, params); in getInstance() 309 CertStoreParameters params, String provider) in getInstance() argument 315 CertStoreSpi.class, type, params, provider); in getInstance() 317 instance.provider, type, params); in getInstance() [all …]
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SSLSocket.java | 1386 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 …]
|
D | SSLEngine.java | 1885 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 …]
|
D | SSLServerSocket.java | 526 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()
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | XECPrivateKeySpec.java | 42 private final AlgorithmParameterSpec params; field in XECPrivateKeySpec 56 public XECPrivateKeySpec(AlgorithmParameterSpec params, byte[] scalar) { in XECPrivateKeySpec() argument 57 Objects.requireNonNull(params, "params must not be null"); in XECPrivateKeySpec() 60 this.params = params; in XECPrivateKeySpec() 70 return params; in getParams()
|
D | EdECPrivateKeySpec.java | 41 private final NamedParameterSpec params; field in EdECPrivateKeySpec 55 public EdECPrivateKeySpec(NamedParameterSpec params, byte[] bytes) { in EdECPrivateKeySpec() argument 56 Objects.requireNonNull(params, "params must not be null"); in EdECPrivateKeySpec() 59 this.params = params; in EdECPrivateKeySpec() 69 return params; in getParams()
|
D | EdECPublicKeySpec.java | 40 private final NamedParameterSpec params; field in EdECPublicKeySpec 53 public EdECPublicKeySpec(NamedParameterSpec params, EdECPoint point) { in EdECPublicKeySpec() argument 54 Objects.requireNonNull(params, "params must not be null"); in EdECPublicKeySpec() 57 this.params = params; in EdECPublicKeySpec() 67 return params; in getParams()
|
D | ECPrivateKeySpec.java | 43 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()
|
D | ECPublicKeySpec.java | 42 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()
|
D | XECPublicKeySpec.java | 43 private final AlgorithmParameterSpec params; field in XECPublicKeySpec 57 public XECPublicKeySpec(AlgorithmParameterSpec params, BigInteger u) { in XECPublicKeySpec() argument 58 Objects.requireNonNull(params, "params must not be null"); in XECPublicKeySpec() 61 this.params = params; in XECPublicKeySpec() 71 return params; in getParams()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | AbstractPoller.java | 161 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/ |
D | DSAParamsTest.java | 35 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/ |
D | ECPublicKeySpecTest.java | 31 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/ |
D | MockCipherSpi.java | 110 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/x509/ |
D | AlgorithmId.java | 78 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() 163 params = new DerValue(algParams.getEncoded()); in derEncode() 165 params = null; in derEncode() 168 if (params == null) { in derEncode() 197 bytes.putDerValue(params); in derEncode() 239 if ((params != null) && algid.equals((Object)specifiedWithECDSA_oid)) { in getName() [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | KeyUtil.java | 82 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/util/logging/ |
D | PlatformLogger.java | 313 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/ |
D | ExemptionMechanismSpiTest.java | 72 …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()
|