Top Fields Constructors Methods
org.bouncycastle.jcajce.provider

pack-priv Class Utils

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.AccessController, .InvalidKeyException, .Key, .KeyStore, .PrivilegedAction, .SecureRandom, java.util.HashMap, .LinkedHashSet, .Map, .Set, javax.crypto.SecretKey, javax.security.auth.callback.Callback, .CallbackHandler, .PasswordCallback, .UnsupportedCallbackException, org.bouncycastle.asn1.ASN1Encodable, .DERNull, org.bouncycastle.crypto.Algorithm, .DigestAlgorithm, .OperatorUsingSecureRandom, .SymmetricKey, .SymmetricSecretKey, org.bouncycastle.crypto.fips.FipsAlgorithm, .FipsSHS, org.bouncycastle.crypto.general.SecureHash

Field Summary

Modifier and TypeField and Description
pack-priv static Map<String, DigestAlgorithm>
pack-priv static Map<DigestAlgorithm, DigestAlgorithm>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> T
addRandomIfNeeded(T operator, SecureRandom random)

pack-priv static SymmetricKey
convertKey(Algorithm algorithm, Key secretKey)

pack-priv static char[]
pack-priv static Set<Algorithm>
getActiveSet(Algorithm[] algorithms)

pack-priv static String
pack-priv static byte[]
pack-priv static DigestAlgorithm
pack-priv static boolean
isAuthMode(Algorithm algorithm)

pack-priv static boolean
pack-priv static boolean
keyNotLength(final SymmetricKey key, int keySizeInBits)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestNameToAlgMapback to summary
pack-priv static Map<String, DigestAlgorithm> digestNameToAlgMap
hmacToAlgMapback to summary
pack-priv static Map<DigestAlgorithm, DigestAlgorithm> hmacToAlgMap

Constructor Detail

Utilsback to summary
pack-priv Utils()

Method Detail

addRandomIfNeededback to summary
pack-priv static <T> T addRandomIfNeeded(T operator, SecureRandom random)
convertKeyback to summary
pack-priv static SymmetricKey convertKey(Algorithm algorithm, Key secretKey) throws InvalidKeyException
extractPasswordback to summary
pack-priv static char[] extractPassword(KeyStore.LoadStoreParameter bcParam) throws IOException
getActiveSetback to summary
pack-priv static Set<Algorithm> getActiveSet(Algorithm[] algorithms)
getBaseNameback to summary
pack-priv static String getBaseName(Algorithm algorithm)
getKeyEncodingback to summary
pack-priv static byte[] getKeyEncoding(Key key) throws InvalidKeyException
getUnderlyingDigestAlgorithmback to summary
pack-priv static DigestAlgorithm getUnderlyingDigestAlgorithm(Algorithm algorithm)
isAuthModeback to summary
pack-priv static boolean isAuthMode(Algorithm algorithm)
isNotNullback to summary
pack-priv static boolean isNotNull(ASN1Encodable parameters)
keyNotLengthback to summary
pack-priv static boolean keyNotLength(final SymmetricKey key, int keySizeInBits)