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 . Figure 17-14. javax.crypto.interfaces.PBEKeypublic 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 ( ); } |