summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-03-14 21:39:41 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-03-14 21:40:42 -0700
commit139c9be97c1ecc42e98426f8bf888eff2ab64659 (patch)
tree311624b9b2d7a01057d368fd97906163cf206074 /src
parent531ca48170b8e7ecf141b8c46ee3532cba028008 (diff)
downloadDotNetOpenAuth-139c9be97c1ecc42e98426f8bf888eff2ab64659.zip
DotNetOpenAuth-139c9be97c1ecc42e98426f8bf888eff2ab64659.tar.gz
DotNetOpenAuth-139c9be97c1ecc42e98426f8bf888eff2ab64659.tar.bz2
XrdsPublisher now has the option to not advertise the location of the XRDS document at all.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/XrdsPublisher.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/XrdsPublisher.cs b/src/DotNetOpenAuth/XrdsPublisher.cs
index 5f0f05f..64f84ea 100644
--- a/src/DotNetOpenAuth/XrdsPublisher.cs
+++ b/src/DotNetOpenAuth/XrdsPublisher.cs
@@ -24,6 +24,18 @@ namespace DotNetOpenAuth {
[Flags]
public enum XrdsUrlLocations {
/// <summary>
+ /// The XRDS document should not be advertised anywhere.
+ /// </summary>
+ /// <remarks>
+ /// When the XRDS document is not referenced from anywhere,
+ /// the XRDS content is only available when
+ /// <see cref="XrdsPublisher.XrdsAutoAnswer"/> is <c>true</c>
+ /// and the discovering client includes an
+ /// "Accept: application/xrds+xml" HTTP header.
+ /// </remarks>
+ None = 0x0,
+
+ /// <summary>
/// Indicates XRDS document referencing from an HTTP protocol header (outside the HTML).
/// </summary>
HttpHeader = 0x1,