92 lines
2.3 KiB
Java
92 lines
2.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.tridium.nre.auth.SecurityUtil
|
|
*/
|
|
package javax.baja.security;
|
|
|
|
import com.tridium.nre.auth.SecurityUtil;
|
|
import javax.baja.agent.BIAgent;
|
|
import javax.baja.security.BAbstractPasswordEncoder;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public final class BPlainPasswordEncoder
|
|
extends BAbstractPasswordEncoder
|
|
implements BIAgent {
|
|
public static final Type TYPE;
|
|
public static final String ENCODING_TYPE = "plain/text";
|
|
private String value;
|
|
static /* synthetic */ Class class$javax$baja$security$BPlainPasswordEncoder;
|
|
|
|
public final Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public final void encode(String string) {
|
|
this.value = string;
|
|
}
|
|
|
|
public final void parse(String string) throws IllegalArgumentException {
|
|
this.value = string;
|
|
}
|
|
|
|
public final String getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public final String getEncodingType() {
|
|
return ENCODING_TYPE;
|
|
}
|
|
|
|
public final boolean isReversible() {
|
|
return true;
|
|
}
|
|
|
|
public final boolean validate(String string) {
|
|
return SecurityUtil.equals((String)string, (String)this.value);
|
|
}
|
|
|
|
public final String getEncodedValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public final String getPortableEncoding() {
|
|
return this.value;
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
private final /* synthetic */ void this() {
|
|
this.value = null;
|
|
}
|
|
|
|
public BPlainPasswordEncoder() {
|
|
this.this();
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$security$BPlainPasswordEncoder;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$security$BPlainPasswordEncoder = BPlainPasswordEncoder.class("[Ljavax.baja.security.BPlainPasswordEncoder;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
}
|
|
}
|
|
|