Class JwtKeyProviderImpl
java.lang.Object
com.cloudimpl.outstack.auth.service.JwtKeyProviderImpl
- All Implemented Interfaces:
JwtKeyProvider
@Component public class JwtKeyProviderImpl extends java.lang.Object implements JwtKeyProvider
- Author:
- nuwan
-
Constructor Summary
Constructors Constructor Description JwtKeyProviderImpl(SecurityProperties prop) -
Method Summary
Modifier and Type Method Description java.security.interfaces.RSAPrivateKeygetPrivateKey()java.security.interfaces.RSAPublicKeygetPublicKey()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JwtKeyProviderImpl
public JwtKeyProviderImpl(SecurityProperties prop) throws java.io.IOException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.security.UnrecoverableKeyException- Throws:
java.io.IOExceptionjava.security.KeyStoreExceptionjava.security.NoSuchAlgorithmExceptionjava.security.cert.CertificateExceptionjava.security.UnrecoverableKeyException
-
-
Method Details
-
getPublicKey
public java.security.interfaces.RSAPublicKey getPublicKey()- Specified by:
getPublicKeyin interfaceJwtKeyProvider
-
getPrivateKey
public java.security.interfaces.RSAPrivateKey getPrivateKey()- Specified by:
getPrivateKeyin interfaceJwtKeyProvider
-