How to Generate an Authentication Token in the Oracle Field Service Cloud

import static java.lang.System.out;
import static java.time.format.DateTimeFormatter.ISO_INSTANT;
import static org.apache.commons.codec.digest.DigestUtils.sha256Hex;

import java.time.Instant;
import java.time.temporal.ChronoUnit.SECONDS;

public final class OfscSample {

  public static void main(final String[] args) {
    out.println(sha256Hex(ISO_INSTANT.format( + sha256Hex("password" + sha256Hex("login"))));


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s