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.RSAPrivateKey getPrivateKey()  
    java.security.interfaces.RSAPublicKey getPublicKey()  

    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.IOException
      java.security.KeyStoreException
      java.security.NoSuchAlgorithmException
      java.security.cert.CertificateException
      java.security.UnrecoverableKeyException
  • Method Details

    • getPublicKey

      public java.security.interfaces.RSAPublicKey getPublicKey()
      Specified by:
      getPublicKey in interface JwtKeyProvider
    • getPrivateKey

      public java.security.interfaces.RSAPrivateKey getPrivateKey()
      Specified by:
      getPrivateKey in interface JwtKeyProvider