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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new instance of PasswordProtection
with a
password. A copy of the password is stored in the new PasswordProtection
object.
Parameters | |
---|---|
password |
char :
the password, maybe null .
|
Destroys / invalidates the password.
Throws | |
---|---|
DestroyFailedException |
if the password could not be invalidated. |
Returns the password.
Returns | |
---|---|
char[] |
the password. |
Throws | |
---|---|
IllegalStateException |
if the password has been destroyed. |
Indicates whether the password is invalidated.
Returns | |
---|---|
boolean |
true if the password is invalidated, false
otherwise.
|