Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jasypt.encryption.pbe.config
Interface PBECleanablePasswordConfig

All Known Implementing Classes:
  EnvironmentPBEConfig, EnvironmentStringPBEConfig, SimplePBEConfig, SimpleStringPBEConfig, WebPBEConfig, WebStringPBEConfig

    public interface PBECleanablePasswordConfig

Common interface for all PBEConfig implementations that store passwords as char[] instead of String and also allow this passwords to be set as char[] instead of Strings.

Since:
  1.8
Author:
  Daniel Fernández

Method Summary
`void` | `cleanPassword()` Clean the password stored in this configuration object.
`char[]` | `getPasswordCharArray()` Return the password set, as a char array.

Method Detail

### getPasswordCharArray

    char[] getPasswordCharArray()

  Return the password set, as a char array.

  Important: the returned array MUST BE A COPY of the one stored in the configuration object. The caller of this method is therefore be responsible for cleaning this resulting char[].

  Since:
    1.8

### cleanPassword

    void cleanPassword()

  Clean the password stored in this configuration object.

  A common implementation of this cleaning operation consists of iterating the array of chars and setting each of its positions to `(char)0`.

  Since:
    1.8

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014 The JASYPT team. All Rights Reserved.