* @return this instance to follow the Builder patter
*/
publicBuildersetCharsetName(StringcharsetName) {
mCharsetName = charsetName;
returnthis;
}
/**
* @return the algorithm
*/
privateStringgetAlgorithm() {
returnmAlgorithm;
}
/**
* @param algorithm the algorithm to be used
*
* @return this instance to follow the Builder patter
*/
publicBuildersetAlgorithm(Stringalgorithm) {
mAlgorithm = algorithm;
returnthis;
}
/**
* @return the Base 64 mode
*/
privateintgetBase64Mode() {
returnmBase64Mode;
}
/**
* @param base64Mode set the base 64 mode
*
* @return this instance to follow the Builder patter
*/
publicBuildersetBase64Mode(intbase64Mode) {
mBase64Mode = base64Mode;
returnthis;
}
/**
* @return the type of aes key that will be created, on KITKAT+ the API has changed, if you
* are getting problems please @see <a href="http://android-developers.blogspot.com.br/2013/12/changes-to-secretkeyfactory-api-in.html">http://android-developers.blogspot.com.br/2013/12/changes-to-secretkeyfactory-api-in.html</a>
*/
privateStringgetSecretKeyType() {
returnmSecretKeyType;
}
/**
* @param secretKeyType the type of AES key that will be created, on KITKAT+ the API has
* changed, if you are getting problems please @see <a href="http://android-developers.blogspot.com.br/2013/12/changes-to-secretkeyfactory-api-in.html">http://android-developers.blogspot.com.br/2013/12/changes-to-secretkeyfactory-api-in.html</a>
*
* @return this instance to follow the Builder patter