Name
KeyStore.PasswordProtection
Synopsis
This
class
is a KeyStore.ProtectionParameter
implementation
that wraps a
password specified as a
char[ ]
. Note that getPassword(
)
returns a reference to the internal array, not a clone of it. The
destroy( )
method zeros out this array.
public static class KeyStore.PasswordProtection implements javax.security.auth.Destroyable, KeyStore.ProtectionParameter { // Public Constructors public PasswordProtection(char[ ] password); // Public Instance Methods public char[ ] getPassword( ); synchronized // Methods Implementing Destroyable public void destroy( ) throws javax.security.auth.DestroyFailedException; synchronized public boolean isDestroyed( ); synchronized }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.