renaming to adhere to GoogleStyle conventions
This commit is contained in:
@@ -53,7 +53,7 @@ public abstract class NoInfluence implements Serializable {
|
||||
keyGen.init(NoUtil.AES_STRENGTH);
|
||||
SecretKey secretKey = keyGen.generateKey();
|
||||
byte[] key = secretKey.getEncoded();
|
||||
byte[] encryptedKey = NoUtil.encryptRSA(key, publicKey);
|
||||
byte[] encryptedKey = NoUtil.encryptRsa(key, publicKey);
|
||||
byte[] data = this.getEncrypted(key);
|
||||
NoUtil.wipeBytes(key);
|
||||
return new NoByteSet(encryptedKey, data);
|
||||
|
||||
@@ -183,20 +183,20 @@ public final class NoSession implements Serializable {
|
||||
return this.current;
|
||||
}
|
||||
|
||||
public UUID getUUID() {
|
||||
public UUID getUuid() {
|
||||
return this.uuid;
|
||||
}
|
||||
|
||||
public String getUUIDAsString() {
|
||||
public String getUuidAsString() {
|
||||
return this.uuid.toString();
|
||||
}
|
||||
|
||||
public byte[] getEncryptedUUID() {
|
||||
public byte[] getEncryptedUuid() {
|
||||
return NoUtil.encrypt(Base64.encodeBase64(this.uuid.toString().getBytes()));
|
||||
}
|
||||
|
||||
public String getEncryptedUUIDAsString() {
|
||||
return new String(this.getEncryptedUUID());
|
||||
public String getEncryptedUuidAsString() {
|
||||
return new String(this.getEncryptedUuid());
|
||||
}
|
||||
|
||||
public byte[] getOriginalHash() {
|
||||
@@ -207,7 +207,7 @@ public final class NoSession implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public static UUID decryptUUID(byte[] data) throws NoDashSessionBadUUIDException {
|
||||
public static UUID decryptUuid(byte[] data) throws NoDashSessionBadUUIDException {
|
||||
if (data == null) {
|
||||
throw new NoDashSessionBadUUIDException();
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ public class NoUser implements Serializable {
|
||||
|
||||
private final byte[] decryptRSA(byte[] data) throws InvalidKeyException,
|
||||
IllegalBlockSizeException, BadPaddingException {
|
||||
return NoUtil.decryptRSA(data, this.privateKey);
|
||||
return NoUtil.decryptRsa(data, this.privateKey);
|
||||
}
|
||||
|
||||
public static NoUser createUserFromFile(byte[] data, char[] password)
|
||||
|
||||
Reference in New Issue
Block a user