package com.airlock.iam.saml2.infrastructure.idp;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.net.URI;

public enum Saml2IdpJerseyUrls {
   SSO_URI("saml2/idp/sso"),
   SSO_CONTINUE_URI("saml2/idp/sso/continue"),
   SLO_URI("saml2/idp/slo"),
   SLO_RESUME_URI("saml2/idp/slo/resume"),
   SLO_INIT_URI("saml2/idp/slo/init"),
   ARTIFACT_RESOLUTION_URI("saml2/idp/resolve-artifact");

   private final String path;

   public URI uri() {
      return URI.create(this.path);
   }

   public URI uriWithLeadingSlash() {
      return URI.create("/" + this.path);
   }

   @SuppressFBWarnings(justification = "generated code")
   Saml2IdpJerseyUrls(final String path) {
      this.path = path;
   }

   @SuppressFBWarnings(justification = "generated code")
   public String path() {
      return this.path;
   }
}
