Package com.mongodb

Class MongoSecurityException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated(since="2021-05-27")
    public class MongoSecurityException
    extends MongoClientException
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    This exception is thrown when there is an error reported by the underlying client authentication mechanism.
    Since:
    3.0
    See Also:
    Serialized Form
    • Constructor Detail

      • MongoSecurityException

        public MongoSecurityException​(MongoCredential credential,
                                      java.lang.String message,
                                      java.lang.Throwable cause)
        Deprecated.
        Construct an instance
        Parameters:
        credential - the credential
        message - the message
        cause - the cause
      • MongoSecurityException

        public MongoSecurityException​(MongoCredential credential,
                                      java.lang.String message)
        Deprecated.
        Construct an instance
        Parameters:
        credential - the credential
        message - the message
    • Method Detail

      • getCredential

        public MongoCredential getCredential()
        Deprecated.
        The credential being authenticated.
        Returns:
        the credential