Class NoSuchCredentialException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
se.swedenconnect.security.credential.bundle.NoSuchCredentialException
All Implemented Interfaces:
Serializable

public class NoSuchCredentialException extends RuntimeException
Exception indicating that a PkiCredential was referenced with an ID that does not match any registered credential.
Author:
Martin Lindström
See Also:
  • Constructor Details

    • NoSuchCredentialException

      public NoSuchCredentialException(@Nonnull String id, @Nullable String message)
      Constructor accepting the credential ID and a message.
      Parameters:
      id - the credential ID
      message - the message
    • NoSuchCredentialException

      public NoSuchCredentialException(@Nonnull String id, @Nullable String message, @Nullable Throwable cause)
      Constructor accepting the credential ID, a message and the cause of the error.
      Parameters:
      id - the credential ID
      message - the message
      cause - the cause of the error
  • Method Details

    • getCredentialId

      @Nonnull public String getCredentialId()
      Gets the credential ID.
      Returns:
      an ID