Class RsaPrivateJwksKeyWriterServiceFactory

    • Constructor Detail

      • RsaPrivateJwksKeyWriterServiceFactory

        public RsaPrivateJwksKeyWriterServiceFactory()
    • Method Detail

      • canWriteKey

        public boolean canWriteKey​(java.security.Key key)
        Description copied from interface: JwksKeyWriter
        Indicates if able to write the Key.
        Specified by:
        canWriteKey in interface JwksKeyWriter<java.security.interfaces.RSAPrivateCrtKey>
        Parameters:
        key - Key.
        Returns:
        true if able to write the Key.
      • writeKey

        public void writeKey​(JwksKeyWriterContext<java.security.interfaces.RSAPrivateCrtKey> context)
                      throws java.lang.Exception
        Description copied from interface: JwksKeyWriter
        Writes the Key as ObjectNode.
        Specified by:
        writeKey in interface JwksKeyWriter<java.security.interfaces.RSAPrivateCrtKey>
        Parameters:
        context - JwksKeyWriterContext.
        Throws:
        java.lang.Exception - If fails to write the Key.