82 Commits

Author SHA1 Message Date
Mandy Chung
d74e2a09ac 6479237: (cl) Add support for classloader names
Reviewed-by: alanb, bchristi, coleenp, dfuchs, lfoltan, psandoz, sspitsyn
2016-11-03 18:08:28 -07:00
Bradford Wetmore
853690d658 4985694: Incomplete spec for most of the getInstances
Reviewed-by: xuelei, mullan
2016-10-31 14:09:42 -07:00
David Dehaven
b27d8f6dd9 8165271: Fix use of reflection to gain access to private fields
Reviewed-by: mchung
2016-10-12 08:47:53 -07:00
Vinnie Ryan
02ca9985fc 8167371: KeyStoreSpi.engineSetEntry should throw an Exception if password protection alg is specified
Reviewed-by: xuelei, mullan
2016-10-13 12:37:42 +01:00
Jonathan Bluett-Duncan
a19fc7fbdb 8134373: use collections convenience factories in the JDK
Reviewed-by: scolebourne, prappo, dfuchs, redestad, smarks
2016-10-12 11:54:38 -07:00
Valerie Peng
81d15be0db 8165275: Replace the reflective call to the implUpdate method in HandshakeMessage::digestKey
Replaced the reflection calls with the new sun.security.util.MessageDigestSpi2 interface

Reviewed-by: xuelei, mchung
2016-10-11 00:04:35 +00:00
Weijun Wang
ba9df3533c 8164705: Remove pathname canonicalization from FilePermission
Reviewed-by: alanb, bpb
2016-10-10 08:28:50 +08:00
Ivan Gerasimov
b7edd5f9aa 8165413: Typos in javadoc: extra period, wrong number, misspelled word
Reviewed-by: weijun, mullan
2016-09-07 10:14:48 +03:00
Valerie Peng
c846a862ee 8130181: Deprecate java.security.Provider(String, double, String), add Provider(Strin
Added Provider constructor which uses version String and use sun.security.util.PROVIDER_VER

Reviewed-by: weijun
2016-08-19 06:27:54 +00:00
Anthony Scarpino
697ec31ecf 8156192: Provider#compute and #merge methods expect wrong permission & #compute ClassCastException even with wrong permission
Reviewed-by: mullan, jnimeh
2016-08-17 16:03:52 -07:00
Brent Christian
99b4bd5013 8161718: Copyright/License updates to corba, jdk
Reviewed-by: bpb, naoto
2016-07-20 08:32:07 -07:00
Valerie Peng
5c40a6a808 8138811: Construction of static protection domains
Updated SubjectDomainCombiner to keep static ProtectionDomain static

Reviewed-by: mullan
2015-12-23 02:36:57 +00:00
Valerie Peng
99cea12e90 8136459: MessageDigest.isEqual is not a "simple byte compare"
Update the corresponding javadoc with @implNote and clarification.

Reviewed-by: mullan, darcy
2016-07-15 01:24:22 +00:00
Jamil Nimeh
d4ed08f59e 8129972: Clarify the javadoc of java.security.CodeSource as to the nullability of 'location'
Improves clarity of the CodeSource javadoc, specifically regarding the ability of the URL parameter in the constructors being null.

Reviewed-by: mullan
2016-07-08 14:42:50 -07:00
Vinnie Ryan
dc536f2d74 8157730: Mark deprecated java.security.{Identity,IdentityScope,Signer} APIs with forRemoval=true
Reviewed-by: mullan
2016-07-01 22:55:26 +01:00
Sean Mullan
3520eff611 8157847: Deprecate the java.security.acl API with forRemoval=true
Reviewed-by: weijun, mchung
2016-07-01 14:29:18 -04:00
Sean Mullan
0ce484cdd7 8157707: Deprecate the java.security.Certificate API with forRemoval=true
Reviewed-by: xuelei
2016-07-01 11:42:26 -04:00
Weijun Wang
ec53a43962 8158534: DrbgParameters strength parameter is underspecified if < -1
Reviewed-by: xuelei
2016-06-12 10:48:19 +08:00
Weijun Wang
16207b2fef 8158442: SecureRandomParameters missing "@since 9"
Reviewed-by: mullan, wetmore
2016-06-07 10:11:33 +08:00
Weijun Wang
ae0c75bb38 8157526: 3KeyTDEA word left in DRBG after JDK-8156213
Reviewed-by: xuelei
2016-05-23 09:31:58 +08:00
Svetlana Nikandrova
d90c351322 8155575: Provider.java contains very long lines because of lambda
Reviewed-by: ascarpino
2016-05-20 11:12:02 -07:00
Weijun Wang
07f2c9d05f 8156213: Remove SHA-1 and 3KeyTDEA algorithms from DRBG
Reviewed-by: wetmore, xuelei
2016-05-12 13:06:03 +08:00
Xueming Shen
b45ea8903e 6328855: String: Matches hangs at short and easy Strings containing \r \n
6192895: java.util.regex.Matcher: Performance issue
6345469: java.util.regex.Matcher utilizes 100% of the CPU
6988218: RegEx matcher loops
6693451: RegEx matcher goes into infinite delay
7006761: Matcher.matches() has infinite loop
8140212: Slow performance of Matcher.find
8151481: j.u.regex.Pattern cleanup
6609854: Regex does not match correctly for negative nested character classes
4916384: CANON_EQ supports only combining character sequences with non-spacing marks
4867170: Pattern doesn't work with composite character in CANON_EQ mode
6995635: CANON_EQ pattern flag is buggy
6728861: ExceptionInInitializerError is caught when the pattern has precomposed character
6736245: A character in Composition Exclusion Table does not match itself
7080302: the normalization in java regex pattern may have flaw

Reviewed-by: rriggs, okutsu, alanb
2016-05-10 21:19:25 -07:00
Ivan Gerasimov
fcf085c678 8156661: Handful of typos in javadoc
Reviewed-by: prappo, rriggs
2016-05-10 17:16:55 +03:00
Weijun Wang
b932c60a85 8051408: NIST SP 800-90A SecureRandom implementations
Reviewed-by: wetmore, xuelei, coffeys
2016-05-06 11:38:44 +08:00
Joe Darcy
01ee88c8ae 6850612: Deprecate Class.newInstance since it violates the checked exception language contract
Reviewed-by: lancea, mullan, dfuchs
2016-05-03 10:40:54 -07:00
Chris Hegarty
07cdc33e34 8137058: Clear out all non-Critical APIs from sun.reflect
Reviewed-by: alanb, jfranck, mchung
2016-04-15 16:19:15 +01:00
Anthony Scarpino
87bdca8684 8152205: jdk.security.provider.preferred is ambiguously documented
Reviewed-by: wetmore, xuelei, weijun
2016-04-13 10:20:40 -07:00
Sean Mullan
e868165acc 8138653: Default key sizes for the AlgorithmParameterGenerator and KeyPairGenerator implementations should be upgraded
Reviewed-by: coffeys, vinnie
2016-03-07 10:10:04 -05:00
Anthony Scarpino
719c597241 8098581: SecureRandom.nextBytes() hurts performance with small size requests
Reviewed-by: valeriep
2016-02-08 13:09:16 -08:00
Iris Clark
9d07dc02e1 8136494: Update "@since 1.9" to "@since 9" to match java.version.specification
Reviewed-by: alanb, chegar, lancea, prr
2016-01-20 11:02:36 -08:00
Sean Mullan
40987b7c03 8085903: New fix for memory leak in ProtectionDomain cache
Reviewed-by: xuelei, igerasim
2016-01-13 09:39:26 -05:00
Claes Redestad
5f1918e76e 8145680: Remove unnecessary explicit initialization of volatile variables in java.base
Reviewed-by: alanb, chegar, jfranck, shade
2015-12-21 20:54:00 +01:00
Chris Hegarty
a979586dce 8144995: Move sun.misc.HexDumpEncoder to sun.security.util
Reviewed-by: psandoz, mchung
2015-12-14 19:24:33 +00:00
Sean Mullan
6578dc0aa5 8144784: Remove @Deprecated annotation from java.security.acl, javax.security.cert and com.sun.jarsigner packages
Reviewed-by: mchung, weijun, wetmore
2015-12-11 09:34:56 -05:00
Roger Riggs
e15eefc7d7 8141652: Rename methods Objects.nonNullElse* to requireNonNullElse*
And some usages of replacing expr != null ? expr : otherexpr

Reviewed-by: jrose, chegar
2015-11-11 22:38:15 -05:00
Anthony Scarpino
274ee0ec5b 8133151: Preferred provider configuration for JCE
Reviewed-by: valeriep
2015-10-19 17:35:18 -07:00
Valerie Peng
fcb924e751 8130648: JCK test api/java_security/AuthProvider/ProviderTests_login starts failing after JDK-7191662
Make uninitialized SunPKCS11 provider throw IllegalStateException for AuthProvider calls.

Reviewed-by: mullan
2015-10-08 20:51:08 +00:00
Chris Hegarty
0cc24c29ca 8137056: Move SharedSecrets and interface friends out of sun.misc
Reviewed-by: alanb, mchung, psandoz, rriggs
2015-09-28 13:39:27 +01:00
Martin Buchholz
a2f0fe3c94 8136583: Core libraries should use blessed modifier order
Run blessed-modifier-order script (see bug)

Reviewed-by: psandoz, chegar, alanb, plevart
2015-09-15 21:56:04 -07:00
Sean Mullan
d323a04105 8015388: Required algorithms for JDK 9
Reviewed-by: jnimeh, wetmore, xuelei
2015-09-16 08:23:37 -04:00
Vinnie Ryan
b476482197 8130800: KeyStore.getInstance(File,char[]) does not throw IOE for null password
Reviewed-by: weijun, mullan
2015-08-31 10:14:34 +01:00
Vinnie Ryan
68703f6458 8130799: KeyStoreSpi.engineProbe does not throw the expected NullPointerException
Reviewed-by: xuelei
2015-08-19 17:42:52 +01:00
Sean Mullan
784379f7a4 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
Reviewed-by: weijun
2015-08-11 08:48:18 -04:00
Vinnie Ryan
c1cd222df9 8130850: Support loading a keystore with a custom KeyStore.LoadStoreParameter class
Reviewed-by: mullan
2015-07-31 14:29:25 +01:00
Sean Mullan
981dbca21a 8131486: SecureClassLoader key for ProtectionDomain cache also needs to take into account certificates
Reviewed-by: weijun
2015-07-20 09:03:03 -04:00
Vinnie Ryan
8b41866506 8075374: Responding to OCSP responses
Reviewed-by: mullan
2015-04-10 18:34:57 +01:00
Valerie Peng
baceaab271 8074865: General crypto resilience changes
Replaced Arrays.equals() with MessageDigest.isEqual() when comparing sensitive values

Reviewed-by: mullan, xuelei
2015-04-06 20:24:27 +00:00
Ivan Gerasimov
82f8a14808 8130022: Use Java-style array declarations consistently
Reviewed-by: coffeys
2015-07-09 10:37:07 +03:00
Paul Sandoz
e56c76e9f7 8081678: Add Stream returning methods to classes where there currently exist only Enumeration returning methods
Reviewed-by: lancea, alanb, chegar, dfuchs, mullan, smarks
2015-06-09 07:10:02 +01:00