diff --git a/api/current.txt b/api/current.txt index 5a7c100b6871b..0f3bf118b14c1 100644 --- a/api/current.txt +++ b/api/current.txt @@ -54971,6 +54971,12 @@ package java.security { } public static abstract interface KeyStore.Entry { + method public default java.util.Set getAttributes(); + } + + public static abstract interface KeyStore.Entry.Attribute { + method public abstract java.lang.String getName(); + method public abstract java.lang.String getValue(); } public static abstract interface KeyStore.LoadStoreParameter { @@ -54979,11 +54985,15 @@ package java.security { public static class KeyStore.PasswordProtection implements javax.security.auth.Destroyable java.security.KeyStore.ProtectionParameter { ctor public KeyStore.PasswordProtection(char[]); + ctor public KeyStore.PasswordProtection(char[], java.lang.String, java.security.spec.AlgorithmParameterSpec); method public synchronized char[] getPassword(); + method public java.lang.String getProtectionAlgorithm(); + method public java.security.spec.AlgorithmParameterSpec getProtectionParameters(); } public static final class KeyStore.PrivateKeyEntry implements java.security.KeyStore.Entry { ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[]); + ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[], java.util.Set); method public java.security.cert.Certificate getCertificate(); method public java.security.cert.Certificate[] getCertificateChain(); method public java.security.PrivateKey getPrivateKey(); @@ -54994,11 +55004,13 @@ package java.security { public static final class KeyStore.SecretKeyEntry implements java.security.KeyStore.Entry { ctor public KeyStore.SecretKeyEntry(javax.crypto.SecretKey); + ctor public KeyStore.SecretKeyEntry(javax.crypto.SecretKey, java.util.Set); method public javax.crypto.SecretKey getSecretKey(); } public static final class KeyStore.TrustedCertificateEntry implements java.security.KeyStore.Entry { ctor public KeyStore.TrustedCertificateEntry(java.security.cert.Certificate); + ctor public KeyStore.TrustedCertificateEntry(java.security.cert.Certificate, java.util.Set); method public java.security.cert.Certificate getTrustedCertificate(); } diff --git a/api/system-current.txt b/api/system-current.txt index f57851c913b47..8d1ebe8b3c017 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -58327,6 +58327,12 @@ package java.security { } public static abstract interface KeyStore.Entry { + method public default java.util.Set getAttributes(); + } + + public static abstract interface KeyStore.Entry.Attribute { + method public abstract java.lang.String getName(); + method public abstract java.lang.String getValue(); } public static abstract interface KeyStore.LoadStoreParameter { @@ -58335,11 +58341,15 @@ package java.security { public static class KeyStore.PasswordProtection implements javax.security.auth.Destroyable java.security.KeyStore.ProtectionParameter { ctor public KeyStore.PasswordProtection(char[]); + ctor public KeyStore.PasswordProtection(char[], java.lang.String, java.security.spec.AlgorithmParameterSpec); method public synchronized char[] getPassword(); + method public java.lang.String getProtectionAlgorithm(); + method public java.security.spec.AlgorithmParameterSpec getProtectionParameters(); } public static final class KeyStore.PrivateKeyEntry implements java.security.KeyStore.Entry { ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[]); + ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[], java.util.Set); method public java.security.cert.Certificate getCertificate(); method public java.security.cert.Certificate[] getCertificateChain(); method public java.security.PrivateKey getPrivateKey(); @@ -58350,11 +58360,13 @@ package java.security { public static final class KeyStore.SecretKeyEntry implements java.security.KeyStore.Entry { ctor public KeyStore.SecretKeyEntry(javax.crypto.SecretKey); + ctor public KeyStore.SecretKeyEntry(javax.crypto.SecretKey, java.util.Set); method public javax.crypto.SecretKey getSecretKey(); } public static final class KeyStore.TrustedCertificateEntry implements java.security.KeyStore.Entry { ctor public KeyStore.TrustedCertificateEntry(java.security.cert.Certificate); + ctor public KeyStore.TrustedCertificateEntry(java.security.cert.Certificate, java.util.Set); method public java.security.cert.Certificate getTrustedCertificate(); } diff --git a/api/test-current.txt b/api/test-current.txt index 3ac97575d4a8c..3f82b0259da40 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -55051,6 +55051,12 @@ package java.security { } public static abstract interface KeyStore.Entry { + method public default java.util.Set getAttributes(); + } + + public static abstract interface KeyStore.Entry.Attribute { + method public abstract java.lang.String getName(); + method public abstract java.lang.String getValue(); } public static abstract interface KeyStore.LoadStoreParameter { @@ -55059,11 +55065,15 @@ package java.security { public static class KeyStore.PasswordProtection implements javax.security.auth.Destroyable java.security.KeyStore.ProtectionParameter { ctor public KeyStore.PasswordProtection(char[]); + ctor public KeyStore.PasswordProtection(char[], java.lang.String, java.security.spec.AlgorithmParameterSpec); method public synchronized char[] getPassword(); + method public java.lang.String getProtectionAlgorithm(); + method public java.security.spec.AlgorithmParameterSpec getProtectionParameters(); } public static final class KeyStore.PrivateKeyEntry implements java.security.KeyStore.Entry { ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[]); + ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[], java.util.Set); method public java.security.cert.Certificate getCertificate(); method public java.security.cert.Certificate[] getCertificateChain(); method public java.security.PrivateKey getPrivateKey(); @@ -55074,11 +55084,13 @@ package java.security { public static final class KeyStore.SecretKeyEntry implements java.security.KeyStore.Entry { ctor public KeyStore.SecretKeyEntry(javax.crypto.SecretKey); + ctor public KeyStore.SecretKeyEntry(javax.crypto.SecretKey, java.util.Set); method public javax.crypto.SecretKey getSecretKey(); } public static final class KeyStore.TrustedCertificateEntry implements java.security.KeyStore.Entry { ctor public KeyStore.TrustedCertificateEntry(java.security.cert.Certificate); + ctor public KeyStore.TrustedCertificateEntry(java.security.cert.Certificate, java.util.Set); method public java.security.cert.Certificate getTrustedCertificate(); }