110 lines
3.0 KiB
Java
110 lines
3.0 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.util;
|
|
|
|
import java.net.Socket;
|
|
import javax.baja.sys.BAbsTime;
|
|
import javax.baja.sys.BComponent;
|
|
import javax.baja.sys.BIcon;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
import javax.baja.util.Lexicon;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BSessionInfo
|
|
extends BComponent {
|
|
public static final Type TYPE;
|
|
private static Lexicon lex;
|
|
protected BAbsTime connected;
|
|
protected String hostname;
|
|
protected String username;
|
|
static /* synthetic */ Class class$com$tridium$util$BSessionInfo;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public static BSessionInfo make(String string, BAbsTime bAbsTime, Socket socket, String string2) {
|
|
return new BSessionInfo(string, bAbsTime, string2);
|
|
}
|
|
|
|
public String getHostname() {
|
|
return this.hostname;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return this.username;
|
|
}
|
|
|
|
public String getConnectedAsMessage(String string) {
|
|
return lex.getText("session.info.connectedAs", new Object[]{string});
|
|
}
|
|
|
|
public BIcon getLastConnectedIcon() {
|
|
return BIcon.make(lex.getText("session.info.lastConnected.icon"));
|
|
}
|
|
|
|
public String getLastConnectedMessage() {
|
|
return lex.getText("session.info.lastConnected", new Object[]{this.connected.toString()});
|
|
}
|
|
|
|
public BIcon getIdentityVerifiedIcon() {
|
|
return BIcon.make(lex.getText("session.info.identityVerified.icon"));
|
|
}
|
|
|
|
public String getIdentityVerifiedMessage() {
|
|
return lex.getText("session.info.identityVerified");
|
|
}
|
|
|
|
public BIcon getSessionEncryptedIcon() {
|
|
return BIcon.make(lex.getText("session.info.sessionEncrypted.icon"));
|
|
}
|
|
|
|
public String getSessionEncryptedMessage() {
|
|
return lex.getText("session.info.sessionEncrypted", new Object[]{this.hostname});
|
|
}
|
|
|
|
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.connected = BAbsTime.NULL;
|
|
this.hostname = null;
|
|
this.username = null;
|
|
}
|
|
|
|
public BSessionInfo() {
|
|
this.this();
|
|
}
|
|
|
|
public BSessionInfo(String string, BAbsTime bAbsTime, String string2) {
|
|
this.this();
|
|
this.hostname = string;
|
|
this.connected = bAbsTime;
|
|
this.username = string2;
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$com$tridium$util$BSessionInfo;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$util$BSessionInfo = BSessionInfo.class("[Lcom.tridium.util.BSessionInfo;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
lex = Lexicon.make("baja");
|
|
}
|
|
}
|
|
|