YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.CryptManager Class Reference

Static Public Member Functions

static SecretKey createNewSharedKey ()
 
static KeyPair createNewKeyPair ()
 
static byte[] getServerIdHash (String par0Str, PublicKey par1PublicKey, SecretKey par2SecretKey)
 
static PublicKey decodePublicKey (byte[] par0ArrayOfByte)
 
static SecretKey decryptSharedKey (PrivateKey par0PrivateKey, byte[] par1ArrayOfByte)
 
static byte[] encryptData (Key par0Key, byte[] par1ArrayOfByte)
 
static byte[] decryptData (Key par0Key, byte[] par1ArrayOfByte)
 
static OutputStream encryptOuputStream (SecretKey par0SecretKey, OutputStream par1OutputStream)
 
static InputStream decryptInputStream (SecretKey par0SecretKey, InputStream par1InputStream)
 

Static Public Attributes

static final Charset charSet = Charset.forName("ISO_8859_1")
 

Member Function Documentation

static KeyPair net.minecraft.util.CryptManager.createNewKeyPair ( )
static
static SecretKey net.minecraft.util.CryptManager.createNewSharedKey ( )
static

Generate a new shared secret AES key from a secure random source

static PublicKey net.minecraft.util.CryptManager.decodePublicKey ( byte[]  par0ArrayOfByte)
static

Create a new PublicKey from encoded X.509 data

static byte [] net.minecraft.util.CryptManager.decryptData ( Key  par0Key,
byte[]  par1ArrayOfByte 
)
static

Decrypt byte[] data with RSA private key

static InputStream net.minecraft.util.CryptManager.decryptInputStream ( SecretKey  par0SecretKey,
InputStream  par1InputStream 
)
static
static SecretKey net.minecraft.util.CryptManager.decryptSharedKey ( PrivateKey  par0PrivateKey,
byte[]  par1ArrayOfByte 
)
static

Decrypt shared secret AES key using RSA private key

static byte [] net.minecraft.util.CryptManager.encryptData ( Key  par0Key,
byte[]  par1ArrayOfByte 
)
static

Encrypt byte[] data with RSA public key

static OutputStream net.minecraft.util.CryptManager.encryptOuputStream ( SecretKey  par0SecretKey,
OutputStream  par1OutputStream 
)
static
static byte [] net.minecraft.util.CryptManager.getServerIdHash ( String  par0Str,
PublicKey  par1PublicKey,
SecretKey  par2SecretKey 
)
static

Compute a serverId hash for use by sendSessionRequest()

Member Data Documentation

final Charset net.minecraft.util.CryptManager.charSet = Charset.forName("ISO_8859_1")
static

ISO_8859_1


The documentation for this class was generated from the following file: