Class RSAKeyFactory
- java.lang.Object
-
- io.jans.as.model.crypto.KeyFactory<RSAPrivateKey,RSAPublicKey>
-
- io.jans.as.model.crypto.signature.RSAKeyFactory
-
@Deprecated public class RSAKeyFactory extends KeyFactory<RSAPrivateKey,RSAPublicKey>
Deprecated.Factory to create asymmetric Public and Private Keys for the RSA algorithm- Version:
- June 15, 2016
- Author:
- Javier Rojas Blum
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEF_KEYLENGTH
Deprecated.-
Fields inherited from class io.jans.as.model.crypto.KeyFactory
DEF_BC
-
-
Constructor Summary
Constructors Constructor Description RSAKeyFactory(SignatureAlgorithm signatureAlgorithm, java.lang.String dnName)
Deprecated.RSAKeyFactory(JSONWebKey key)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Certificate
getCertificate()
Deprecated.RSAPrivateKey
getPrivateKey()
Deprecated.RSAPublicKey
getPublicKey()
Deprecated.static RSAKeyFactory
valueOf(JSONWebKey key)
Deprecated.-
Methods inherited from class io.jans.as.model.crypto.KeyFactory
getKey
-
-
-
-
Field Detail
-
DEF_KEYLENGTH
public static final int DEF_KEYLENGTH
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RSAKeyFactory
@Deprecated public RSAKeyFactory(SignatureAlgorithm signatureAlgorithm, java.lang.String dnName) throws java.security.InvalidParameterException, java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.SignatureException, java.security.InvalidKeyException, java.security.cert.CertificateEncodingException
Deprecated.- Throws:
java.security.InvalidParameterException
java.security.NoSuchProviderException
java.security.NoSuchAlgorithmException
java.security.SignatureException
java.security.InvalidKeyException
java.security.cert.CertificateEncodingException
-
RSAKeyFactory
@Deprecated public RSAKeyFactory(JSONWebKey key)
Deprecated.
-
-
Method Detail
-
valueOf
public static RSAKeyFactory valueOf(JSONWebKey key)
Deprecated.
-
getPrivateKey
public RSAPrivateKey getPrivateKey()
Deprecated.- Specified by:
getPrivateKey
in classKeyFactory<RSAPrivateKey,RSAPublicKey>
-
getPublicKey
public RSAPublicKey getPublicKey()
Deprecated.- Specified by:
getPublicKey
in classKeyFactory<RSAPrivateKey,RSAPublicKey>
-
getCertificate
public Certificate getCertificate()
Deprecated.- Specified by:
getCertificate
in classKeyFactory<RSAPrivateKey,RSAPublicKey>
-
-