| Modifier and Type | Method and Description |
|---|---|
int |
Cipher.decrypt(byte[] cipherText,
byte[] plainText,
Key key,
byte[] iv)
Decrypts cipherText and stores the
plain text in plainText using private key for password
decryption or symmetric key for data decryption
|
int |
MessageDigest.digest(byte[] key,
byte[] data,
byte[] md)
Digests message using HmacSHA256 algorithm.
|
int |
Cipher.encrypt(byte[] plainText,
byte[] cipherText,
Key key)
Encrypts plain text and stores the
cipher text in cipherText using public key for password encryption.
|
static byte[] |
Cipher.encryptData(byte[] plainText,
SecretKey key,
byte[] iv,
Cipher cipher)
Encrypts the plain text data message using "EAS256/CBC/PKCS7"
|
void |
SecPwd.encryptPwd(byte[] pwd,
byte[] rolename,
byte[] pwdkey)
This method builds the password key which consists 4 bytes of password id,
128 bytes of role name which would be 128 spaces when role name is null,
32 bytes of the digest message calculated using the session key on the data made up of
the procInfo and the encrypted data and 256 bytes (if the 2048 public key is used) or
128 bytes (if the1024 public key is used) encrypted data calculated using the public key
on the plain text made up of the session key, the nonce and the password.
|
static Cipher |
Cipher.getEASInstance(String algorithm) |
static SymCrypto |
SymCrypto.getInstance(Connection con)
Returns the SymCrypto object correspondence to the connection passed in
|
static SecPwd |
SecPwd.getInstance(Connection con,
String directory,
String fileName,
String serverName,
boolean spjMode,
byte[] procInfo) |
void |
Key.getPrivKeyFromFile(String inFile)
Reads the private key from certificate file and
stores the key in the member data.
|
int |
SecPwd.getPwdEBufferLen()
Gets length of buffer for password encryption (public)
or the length of the token if it is the SPJ mode
|
void |
SecPwd.openCertificate()
Processes the active certificate when spjMode is false
else does nothing.
|
void |
SecPwd.switchCertificate(byte[] buf)
When autodownload is on, client will download the certificate from server
when there is no certificate or certificate is stale.
|
| Constructor and Description |
|---|
Certificate(File certFile)
Ctor - Gets certificate and the certificate's expiration
date from the certificate file.
|
Copyright © 2017. All Rights Reserved.