| java.lang.Object | |
| ↳ | java.security.KeyStore.PasswordProtection |
PasswordProtection
is a
ProtectionParameter
that protects
a
KeyStore
using a password.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Constructs a new instance of
PasswordProtection
with a
password.
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Destroys / invalidates the password.
|
||||||||||
|
|
Returns the password.
|
||||||||||
|
|
Indicates whether the password is invalidated.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
javax.security.auth.Destroyable
|
|||||||||||
Constructs a new instance of
PasswordProtection
with a
password. A copy of the password is stored in the new
PasswordProtection
object.
| password |
the password, maybe
null
.
|
|---|
Destroys / invalidates the password.
| DestroyFailedException | if the password could not be invalidated. |
|---|
Returns the password.
| IllegalStateException | if the password has been destroyed. |
|---|
Indicates whether the password is invalidated.
true
if the password is invalidated,
false
otherwise.