Class LinkConflictException

Object
Throwable
Exception
se.curity.identityserver.sdk.errors.LinkConflictException
All Implemented Interfaces:
Serializable

public class LinkConflictException extends Exception
Exception thrown when a link could not be created because of an already existing link to another account.
Since:
3.0.0
See Also:
  • Constructor Details

    • LinkConflictException

      public LinkConflictException(String localAccountId, AccountDomain foreignAccountDomain, String foreignSubject)
  • Method Details

    • getLocalAccountId

      public String getLocalAccountId()
      Gets the local account ID in the already existing link.
      Returns:
      the local account ID
    • getForeignAccountDomain

      public AccountDomain getForeignAccountDomain()
      Gets the foreign account domain in the already existing link.
      Returns:
      the foreign AccountDomain
    • getForeignSubject

      public String getForeignSubject()
      Gets the foreign subject in the already existing link.
      Returns:
      the foreign subject