public class KeyUtil
extends java.lang.Object
| Constructor and Description |
|---|
KeyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.PrivateKey |
decodePrivateKey(AsymmetricAlg aAsymmetricAlg,
byte[] aBytes) |
static java.security.PublicKey |
decodePublicKey(AsymmetricAlg aAsymmetricAlg,
byte[] aBytes) |
static java.security.PublicKey |
decodePublicKey(tr.gov.tubitak.uekae.esya.api.asn.x509.ESubjectPublicKeyInfo aSubjectPublicKeyInfo) |
static byte[] |
generateKey(CipherAlg aAlg,
int aBitLength) |
static java.security.KeyPair |
generateKeyPair(AsymmetricAlg aAsymmetricAlg,
int aLength) |
static java.security.PrivateKey |
generatePrivateKey(java.security.spec.KeySpec aKeySpec) |
static java.security.PublicKey |
generatePublicKey(java.security.spec.KeySpec aKeySpec) |
static javax.crypto.SecretKey |
generateSecretKey(CipherAlg mSymmetricAlgorithm,
int keyLength) |
static javax.crypto.SecretKey |
generateSecretKey(KeySpec aSpec) |
static WrapAlg |
getConvenientWrapAlg(CipherAlg aCipherAlg) |
static int |
getKeyLength(Algorithm aCipheralg) |
static int |
getKeyLength(tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate certificate) |
static int |
getKeyLength(java.security.spec.KeySpec publicKeySpec) |
static int |
getKeyLength(java.security.PrivateKey aKey) |
static int |
getKeyLength(java.security.PublicKey aKey) |
public static java.security.PublicKey decodePublicKey(AsymmetricAlg aAsymmetricAlg, byte[] aBytes) throws CryptoException
CryptoExceptionpublic static java.security.PublicKey decodePublicKey(tr.gov.tubitak.uekae.esya.api.asn.x509.ESubjectPublicKeyInfo aSubjectPublicKeyInfo)
throws CryptoException
CryptoExceptionpublic static java.security.PrivateKey decodePrivateKey(AsymmetricAlg aAsymmetricAlg, byte[] aBytes) throws CryptoException
CryptoExceptionpublic static int getKeyLength(tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate certificate)
throws CryptoException
CryptoExceptionpublic static int getKeyLength(java.security.PublicKey aKey)
throws CryptoException
CryptoExceptionpublic static int getKeyLength(java.security.spec.KeySpec publicKeySpec)
throws CryptoException
CryptoExceptionpublic static java.security.KeyPair generateKeyPair(AsymmetricAlg aAsymmetricAlg, int aLength) throws CryptoException
CryptoExceptionpublic static javax.crypto.SecretKey generateSecretKey(CipherAlg mSymmetricAlgorithm, int keyLength) throws CryptoException
CryptoExceptionpublic static javax.crypto.SecretKey generateSecretKey(KeySpec aSpec) throws CryptoException
CryptoExceptionpublic static byte[] generateKey(CipherAlg aAlg, int aBitLength) throws CryptoException
CryptoExceptionpublic static int getKeyLength(java.security.PrivateKey aKey)
throws CryptoException
CryptoExceptionpublic static int getKeyLength(Algorithm aCipheralg)
public static java.security.PublicKey generatePublicKey(java.security.spec.KeySpec aKeySpec)
throws CryptoException
CryptoExceptionpublic static java.security.PrivateKey generatePrivateKey(java.security.spec.KeySpec aKeySpec)
throws CryptoException
CryptoExceptionCopyright © 2025. All rights reserved.