public class RSAUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RSAUtil.KeyType |
| Constructor and Description |
|---|
RSAUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.spec.AlgorithmParameterSpec |
checkParamsAgainstType(RSAUtil.KeyType type,
java.security.spec.AlgorithmParameterSpec paramSpec) |
static AlgorithmId |
createAlgorithmId(RSAUtil.KeyType type,
java.security.spec.AlgorithmParameterSpec paramSpec) |
static byte[] |
decodeSignature(ObjectIdentifier oid,
byte[] sig)
Decode the signature data.
|
static byte[] |
encodeSignature(ObjectIdentifier oid,
byte[] digest)
Encode the digest, return the to-be-signed data.
|
static java.security.AlgorithmParameters |
getParams(RSAUtil.KeyType type,
java.security.spec.AlgorithmParameterSpec spec) |
static java.security.spec.AlgorithmParameterSpec |
getParamSpec(java.security.AlgorithmParameters params) |
static java.lang.Object[] |
getTypeAndParamSpec(AlgorithmId algid) |
public static java.security.spec.AlgorithmParameterSpec checkParamsAgainstType(RSAUtil.KeyType type, java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.ProviderException
java.security.ProviderExceptionpublic static java.security.AlgorithmParameters getParams(RSAUtil.KeyType type, java.security.spec.AlgorithmParameterSpec spec) throws java.security.ProviderException
java.security.ProviderExceptionpublic static AlgorithmId createAlgorithmId(RSAUtil.KeyType type, java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.ProviderException
java.security.ProviderExceptionpublic static java.security.spec.AlgorithmParameterSpec getParamSpec(java.security.AlgorithmParameters params)
throws java.security.ProviderException
java.security.ProviderExceptionpublic static java.lang.Object[] getTypeAndParamSpec(AlgorithmId algid) throws java.security.ProviderException
java.security.ProviderExceptionpublic static byte[] encodeSignature(ObjectIdentifier oid, byte[] digest) throws java.io.IOException
java.io.IOExceptionpublic static byte[] decodeSignature(ObjectIdentifier oid, byte[] sig) throws java.io.IOException
java.io.IOException