public class org.jasypt.salt.FixedStringSaltGenerator extends java.lang.Object implements org.jasypt.salt.SaltGenerator
{
private static final java.lang.String DEFAULT_CHARSET;
private java.lang.String salt;
private java.lang.String charset;
private byte[] saltBytes;
public void <init>()
{
org.jasypt.salt.FixedStringSaltGenerator v;
v := @this: org.jasypt.salt.FixedStringSaltGenerator;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.jasypt.salt.FixedStringSaltGenerator: java.lang.String salt> = null;
v.<org.jasypt.salt.FixedStringSaltGenerator: java.lang.String charset> = "UTF-8";
v.<org.jasypt.salt.FixedStringSaltGenerator: byte[] saltBytes> = null;
return;
}
public synchronized void setSalt(java.lang.String)
{
org.jasypt.salt.FixedStringSaltGenerator v;
java.lang.String v;
v := @this: org.jasypt.salt.FixedStringSaltGenerator;
v := @parameter: java.lang.String;
staticinvoke <org.jasypt.commons.CommonUtils: void validateNotNull(java.lang.Object,java.lang.String)>(v, "Salt cannot be set null");
v.<org.jasypt.salt.FixedStringSaltGenerator: java.lang.String salt> = v;
return;
}
public synchronized void setCharset(java.lang.String)
{
org.jasypt.salt.FixedStringSaltGenerator v;
java.lang.String v;
v := @this: org.jasypt.salt.FixedStringSaltGenerator;
v := @parameter: java.lang.String;
staticinvoke <org.jasypt.commons.CommonUtils: void validateNotNull(java.lang.Object,java.lang.String)>(v, "Charset cannot be set null");
v.<org.jasypt.salt.FixedStringSaltGenerator: java.lang.String charset> = v;
return;
}
public byte[] generateSalt(int)
{
byte[] v, v, v, v, v;
org.jasypt.exceptions.EncryptionInitializationException v, v, v;
int v, v;
java.lang.String v, v, v, v, v;
org.jasypt.salt.FixedStringSaltGenerator v;
java.io.UnsupportedEncodingException v;
v := @this: org.jasypt.salt.FixedStringSaltGenerator;
v := @parameter: int;
v = v.<org.jasypt.salt.FixedStringSaltGenerator: java.lang.String salt>;
if v != null goto label;
v = new org.jasypt.exceptions.EncryptionInitializationException;
specialinvoke v.<org.jasypt.exceptions.EncryptionInitializationException: void <init>(java.lang.String)>("Salt has not been set");
throw v;
label:
v = v.<org.jasypt.salt.FixedStringSaltGenerator: byte[] saltBytes>;
if v != null goto label;
label:
v = v.<org.jasypt.salt.FixedStringSaltGenerator: java.lang.String salt>;
v = v.<org.jasypt.salt.FixedStringSaltGenerator: java.lang.String charset>;
v = virtualinvoke v.<java.lang.String: byte[] getBytes(java.lang.String)>(v);
v.<org.jasypt.salt.FixedStringSaltGenerator: byte[] saltBytes> = v;
label:
goto label;
label:
v := @caughtexception;
v = new org.jasypt.exceptions.EncryptionInitializationException;
v = v.<org.jasypt.salt.FixedStringSaltGenerator: java.lang.String charset>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Invalid charset specified: \u0001");
specialinvoke v.<org.jasypt.exceptions.EncryptionInitializationException: void <init>(java.lang.String)>(v);
throw v;
label:
v = v.<org.jasypt.salt.FixedStringSaltGenerator: byte[] saltBytes>;
v = lengthof v;
if v >= v goto label;
v = new org.jasypt.exceptions.EncryptionInitializationException;
specialinvoke v.<org.jasypt.exceptions.EncryptionInitializationException: void <init>(java.lang.String)>("Requested salt larger than set");
throw v;
label:
v = newarray (byte)[v];
v = v.<org.jasypt.salt.FixedStringSaltGenerator: byte[] saltBytes>;
staticinvoke <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>(v, 0, v, 0, v);
return v;
catch java.io.UnsupportedEncodingException from label to label with label;
}
public boolean includePlainSaltInEncryptionResults()
{
org.jasypt.salt.FixedStringSaltGenerator v;
v := @this: org.jasypt.salt.FixedStringSaltGenerator;
return 0;
}
}