Class SecretJwksKeyWriterServiceFactory

    • Constructor Detail

      • SecretJwksKeyWriterServiceFactory

        public SecretJwksKeyWriterServiceFactory()
    • 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<javax.crypto.spec.SecretKeySpec>
        Parameters:
        key - Key.
        Returns:
        true if able to write the Key.
      • writeKey

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