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
CryptoException
public static java.security.PublicKey decodePublicKey(tr.gov.tubitak.uekae.esya.api.asn.x509.ESubjectPublicKeyInfo aSubjectPublicKeyInfo) throws CryptoException
CryptoException
public static java.security.PrivateKey decodePrivateKey(AsymmetricAlg aAsymmetricAlg, byte[] aBytes) throws CryptoException
CryptoException
public static int getKeyLength(tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate certificate) throws CryptoException
CryptoException
public static int getKeyLength(java.security.PublicKey aKey) throws CryptoException
CryptoException
public static int getKeyLength(java.security.spec.KeySpec publicKeySpec) throws CryptoException
CryptoException
public static java.security.KeyPair generateKeyPair(AsymmetricAlg aAsymmetricAlg, int aLength) throws CryptoException
CryptoException
public static javax.crypto.SecretKey generateSecretKey(CipherAlg mSymmetricAlgorithm, int keyLength) throws CryptoException
CryptoException
public static javax.crypto.SecretKey generateSecretKey(KeySpec aSpec) throws CryptoException
CryptoException
public static byte[] generateKey(CipherAlg aAlg, int aBitLength) throws CryptoException
CryptoException
public static int getKeyLength(java.security.PrivateKey aKey) throws CryptoException
CryptoException
public static int getKeyLength(Algorithm aCipheralg)
public static java.security.PublicKey generatePublicKey(java.security.spec.KeySpec aKeySpec) throws CryptoException
CryptoException
public static java.security.PrivateKey generatePrivateKey(java.security.spec.KeySpec aKeySpec) throws CryptoException
CryptoException
Copyright © 2025. All rights reserved.