|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.util.CryptManager
public class CryptManager
Field Summary | |
---|---|
static Charset |
charSet
ISO_8859_1 |
Constructor Summary | |
---|---|
CryptManager()
|
Method Summary | |
---|---|
static KeyPair |
createNewKeyPair()
|
static SecretKey |
createNewSharedKey()
|
static PublicKey |
decodePublicKey(byte[] par0ArrayOfByte)
Create a new PublicKey from encoded X.509 data |
static byte[] |
decryptData(Key par0Key,
byte[] par1ArrayOfByte)
Decrypt byte[] data with RSA private key |
static InputStream |
decryptInputStream(SecretKey par0SecretKey,
InputStream par1InputStream)
|
static SecretKey |
decryptSharedKey(PrivateKey par0PrivateKey,
byte[] par1ArrayOfByte)
Decrypt shared secret AES key using RSA private key |
static byte[] |
encryptData(Key par0Key,
byte[] par1ArrayOfByte)
|
static OutputStream |
encryptOuputStream(SecretKey par0SecretKey,
OutputStream par1OutputStream)
|
static byte[] |
getServerIdHash(String par0Str,
PublicKey par1PublicKey,
SecretKey par2SecretKey)
Compute a serverId hash for use by sendSessionRequest() |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Charset charSet
Constructor Detail |
---|
public CryptManager()
Method Detail |
---|
public static SecretKey createNewSharedKey()
public static KeyPair createNewKeyPair()
public static byte[] getServerIdHash(String par0Str, PublicKey par1PublicKey, SecretKey par2SecretKey)
public static PublicKey decodePublicKey(byte[] par0ArrayOfByte)
public static SecretKey decryptSharedKey(PrivateKey par0PrivateKey, byte[] par1ArrayOfByte)
public static byte[] encryptData(Key par0Key, byte[] par1ArrayOfByte)
public static byte[] decryptData(Key par0Key, byte[] par1ArrayOfByte)
public static OutputStream encryptOuputStream(SecretKey par0SecretKey, OutputStream par1OutputStream)
public static InputStream decryptInputStream(SecretKey par0SecretKey, InputStream par1InputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |