name refactors
This commit is contained in:
@@ -28,7 +28,7 @@ import java.nio.file.StandardOpenOption;
|
||||
|
||||
import nodash.exceptions.NoDashFatalException;
|
||||
|
||||
public final class NoConfigDefault extends NoConfigBase implements Serializable {
|
||||
public final class NoConfigDefault extends NoConfigBase implements NoConfigInterface, Serializable {
|
||||
private static final long serialVersionUID = -8498303909736017075L;
|
||||
|
||||
private static final String CONFIG_FILENAME = "noconfig.cfg";
|
||||
|
||||
@@ -46,9 +46,9 @@ public final class NoByteSetSphere {
|
||||
}
|
||||
|
||||
public static List<NoByteSet> consume(NoUser user) {
|
||||
if (NoByteSetSphere.byteSets.containsKey(user.getRSAPublicKey())) {
|
||||
ArrayList<NoByteSet> result = NoByteSetSphere.byteSets.get(user.getRSAPublicKey());
|
||||
NoByteSetSphere.byteSets.remove(user.getRSAPublicKey());
|
||||
if (NoByteSetSphere.byteSets.containsKey(user.getRsaPublicKey())) {
|
||||
ArrayList<NoByteSet> result = NoByteSetSphere.byteSets.get(user.getRsaPublicKey());
|
||||
NoByteSetSphere.byteSets.remove(user.getRsaPublicKey());
|
||||
return result;
|
||||
} else {
|
||||
return NoByteSetSphere.EMPTY_BYTESET_LIST;
|
||||
|
||||
@@ -52,12 +52,12 @@ public final class NoSessionSphere {
|
||||
}
|
||||
}
|
||||
|
||||
public static void shred(byte[] encryptedUUID) {
|
||||
public static void shred(byte[] encryptedUuid) {
|
||||
try {
|
||||
UUID uuid = NoSession.decryptUuid(encryptedUUID);
|
||||
UUID uuid = NoSession.decryptUuid(encryptedUuid);
|
||||
if (NoSessionSphere.sessions.containsKey(uuid)) {
|
||||
NoSession session = NoSessionSphere.sessions.get(uuid);
|
||||
NoByteSetSphere.addList(session.incoming, session.current.getRSAPublicKey());
|
||||
NoByteSetSphere.addList(session.incoming, session.current.getRsaPublicKey());
|
||||
NoSessionSphere.originalHashesOnline.remove(Base64.encodeBase64String(session
|
||||
.getOriginalHash()));
|
||||
NoSessionSphere.sessions.remove(uuid);
|
||||
@@ -74,7 +74,7 @@ public final class NoSessionSphere {
|
||||
session.check();
|
||||
} catch (NoSessionExpiredException e) {
|
||||
/* Resultant from 3.1 and 3.2 */
|
||||
NoByteSetSphere.addList(session.incoming, session.current.getRSAPublicKey());
|
||||
NoByteSetSphere.addList(session.incoming, session.current.getRsaPublicKey());
|
||||
NoSessionSphere.originalHashesOnline.remove(session.getOriginalHash());
|
||||
NoSessionSphere.sessions.remove(uuid);
|
||||
session = null;
|
||||
|
||||
Reference in New Issue
Block a user