# System.Security.Authentication

``` diff
 namespace System.Security.Authentication {
     public class AuthenticationException : SystemException {
-        protected AuthenticationException(SerializationInfo serializationInfo, StreamingContext streamingContext);
+        [EditorBrowsableAttribute(EditorBrowsableState.Never)]
+        [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+        protected AuthenticationException(SerializationInfo serializationInfo, StreamingContext streamingContext);
     }
     public class InvalidCredentialException : AuthenticationException {
-        protected InvalidCredentialException(SerializationInfo serializationInfo, StreamingContext streamingContext);
+        [EditorBrowsableAttribute(EditorBrowsableState.Never)]
+        [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+        protected InvalidCredentialException(SerializationInfo serializationInfo, StreamingContext streamingContext);
     }
 }
```

