Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / PolicyUtility.cs / 1 / PolicyUtility.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- // // Presharp uses the c# pragma mechanism to supress its warnings. // These are not recognised by the base compiler so we need to explictly // disable the following warnings. See http://winweb/cse/Tools/PREsharp/userguide/default.asp // for details. // #pragma warning disable 1634, 1691 // unknown message, unknown pragma namespace Microsoft.InfoCards { using System; // // Summary: // Contains utility methods for dealing with policy that may be needed in multiple classes. // internal class PolicyUtility { static public bool IsSelfIssuedTokenType( string tokenType ) { if( XmlNames.Saml11.Namespace == tokenType || XmlNames.Saml10.Namespace == tokenType || XmlNames.Saml11.AltNamespace == tokenType ) { return true; } return false; } static public bool IsSelfIssuedClaim( string claimType ) { foreach( string selfUri in InfoCardConstants.SelfIssuedClaimsUris ) { if( selfUri == claimType ) { return true; } } if( InfoCardConstants.PPIDClaimsUri == claimType ) { return true; } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckBoxDesigner.cs
- UIElementCollection.cs
- ValidationErrorCollection.cs
- SingleObjectCollection.cs
- PenThread.cs
- TypeElement.cs
- XmlSchemaRedefine.cs
- ResourcePool.cs
- OleDbConnectionFactory.cs
- NativeMethods.cs
- Types.cs
- CodeAccessSecurityEngine.cs
- selecteditemcollection.cs
- MessagingActivityHelper.cs
- ObjectStateEntryDbDataRecord.cs
- DataFormat.cs
- _Events.cs
- WindowsStatusBar.cs
- KeyManager.cs
- StylusPointDescription.cs
- TabControl.cs
- DataSourceCollectionBase.cs
- View.cs
- XPathException.cs
- SByteConverter.cs
- SqlBuilder.cs
- CryptoKeySecurity.cs
- MediaElementAutomationPeer.cs
- Control.cs
- SiteMapHierarchicalDataSourceView.cs
- FormViewPageEventArgs.cs
- UpdateExpressionVisitor.cs
- Funcletizer.cs
- ResourceDescriptionAttribute.cs
- OleServicesContext.cs
- UriPrefixTable.cs
- FileRegion.cs
- ImportOptions.cs
- AgileSafeNativeMemoryHandle.cs
- SqlInternalConnectionSmi.cs
- XPathScanner.cs
- TemplateInstanceAttribute.cs
- HScrollBar.cs
- Serializer.cs
- HwndSourceParameters.cs
- WeakEventTable.cs
- IDQuery.cs
- FixedFindEngine.cs
- DropSourceBehavior.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- MulticastDelegate.cs
- HostExecutionContextManager.cs
- RealProxy.cs
- OnOperation.cs
- BrowserDefinitionCollection.cs
- ScrollEventArgs.cs
- Timer.cs
- XmlSerializerVersionAttribute.cs
- Bits.cs
- Msmq3PoisonHandler.cs
- ClrPerspective.cs
- NopReturnReader.cs
- ArithmeticException.cs
- AssociatedControlConverter.cs
- FormsAuthenticationEventArgs.cs
- TextSelectionHighlightLayer.cs
- IfJoinedCondition.cs
- RegionInfo.cs
- DynamicDiscoveryDocument.cs
- Html32TextWriter.cs
- StaticTextPointer.cs
- invalidudtexception.cs
- TimeSpanConverter.cs
- UriScheme.cs
- cryptoapiTransform.cs
- SQLMembershipProvider.cs
- DescendantOverDescendantQuery.cs
- oledbconnectionstring.cs
- URIFormatException.cs
- GroupBox.cs
- Rule.cs
- x509store.cs
- SystemEvents.cs
- HijriCalendar.cs
- SerializableTypeCodeDomSerializer.cs
- EmitterCache.cs
- CodeGroup.cs
- ReadingWritingEntityEventArgs.cs
- DLinqAssociationProvider.cs
- AsyncDataRequest.cs
- ChannelBinding.cs
- ITextView.cs
- DragDeltaEventArgs.cs
- DataBindingCollection.cs
- RolePrincipal.cs
- BinaryMessageEncodingElement.cs
- FormClosedEvent.cs
- SymbolPair.cs
- Int32Storage.cs
- PersonalizableAttribute.cs