Class RsaPublicJwksKeyWriterServiceFactory

    • Constructor Detail

      • RsaPublicJwksKeyWriterServiceFactory

        public RsaPublicJwksKeyWriterServiceFactory()
    • 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.RSAPublicKey>
        Parameters:
        key - Key.
        Returns:
        true if able to write the Key.
      • writeKey

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