Name

PBEKey

Synopsis

This interface represents a key for password-based encryption. If you are working with a SecretKey that you know is a password-based key, you can cast it to a PBEKey.

javax.crypto.interfaces.PBEKey

Figure 17-14. javax.crypto.interfaces.PBEKey

public interface PBEKey extends javax.crypto.SecretKey {
// Public Constants
                  5.0  public static final long serialVersionUID;                      =-1430015993304333921
                  // Public Instance Methods
     int getIterationCount( );  
     char[ ] getPassword( );  
     byte[ ] getSalt( );  
}

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.