Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SigningCredentials.cs / 1305376 / SigningCredentials.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.IdentityModel; public class SigningCredentials { string digestAlgorithm; string signatureAlgorithm; SecurityKey signingKey; SecurityKeyIdentifier signingKeyIdentifier; public SigningCredentials(SecurityKey signingKey, string signatureAlgorithm, string digestAlgorithm) : this(signingKey, signatureAlgorithm, digestAlgorithm, null) {} public SigningCredentials(SecurityKey signingKey, string signatureAlgorithm, string digestAlgorithm, SecurityKeyIdentifier signingKeyIdentifier) { if (signingKey == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("signingKey")); } if (signatureAlgorithm == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("signatureAlgorithm")); } if (digestAlgorithm == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("digestAlgorithm")); } this.signingKey = signingKey; this.signatureAlgorithm = signatureAlgorithm; this.digestAlgorithm = digestAlgorithm; this.signingKeyIdentifier = signingKeyIdentifier; } public string DigestAlgorithm { get {return this.digestAlgorithm; } } public string SignatureAlgorithm { get {return this.signatureAlgorithm; } } public SecurityKey SigningKey { get {return this.signingKey; } } public SecurityKeyIdentifier SigningKeyIdentifier { get {return this.signingKeyIdentifier; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.IdentityModel; public class SigningCredentials { string digestAlgorithm; string signatureAlgorithm; SecurityKey signingKey; SecurityKeyIdentifier signingKeyIdentifier; public SigningCredentials(SecurityKey signingKey, string signatureAlgorithm, string digestAlgorithm) : this(signingKey, signatureAlgorithm, digestAlgorithm, null) {} public SigningCredentials(SecurityKey signingKey, string signatureAlgorithm, string digestAlgorithm, SecurityKeyIdentifier signingKeyIdentifier) { if (signingKey == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("signingKey")); } if (signatureAlgorithm == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("signatureAlgorithm")); } if (digestAlgorithm == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("digestAlgorithm")); } this.signingKey = signingKey; this.signatureAlgorithm = signatureAlgorithm; this.digestAlgorithm = digestAlgorithm; this.signingKeyIdentifier = signingKeyIdentifier; } public string DigestAlgorithm { get {return this.digestAlgorithm; } } public string SignatureAlgorithm { get {return this.signatureAlgorithm; } } public SecurityKey SigningKey { get {return this.signingKey; } } public SecurityKeyIdentifier SigningKeyIdentifier { get {return this.signingKeyIdentifier; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmiMetaDataProperty.cs
- HuffModule.cs
- ContainerAction.cs
- ParseChildrenAsPropertiesAttribute.cs
- TrackingProfile.cs
- WebPartsSection.cs
- Version.cs
- SerializationEventsCache.cs
- documentsequencetextview.cs
- UpdatePanel.cs
- TextEffectResolver.cs
- WindowsListViewItem.cs
- RegularExpressionValidator.cs
- HighlightComponent.cs
- VisualBasicReference.cs
- DataControlButton.cs
- PKCS1MaskGenerationMethod.cs
- StatusBar.cs
- Inline.cs
- LateBoundBitmapDecoder.cs
- Visual3DCollection.cs
- UpdateException.cs
- DEREncoding.cs
- KeyMatchBuilder.cs
- UiaCoreTypesApi.cs
- URL.cs
- SchemaCollectionCompiler.cs
- LocalizationCodeDomSerializer.cs
- ObjectQueryState.cs
- FreezableCollection.cs
- URL.cs
- Light.cs
- MaterializeFromAtom.cs
- XpsFont.cs
- MethodBuilderInstantiation.cs
- Char.cs
- ApplicationServiceHelper.cs
- EventEntry.cs
- CssTextWriter.cs
- UnsafeMethods.cs
- DbCommandDefinition.cs
- TraceListener.cs
- DataBinder.cs
- ImageKeyConverter.cs
- FormViewModeEventArgs.cs
- SchemaInfo.cs
- FileEnumerator.cs
- Cursors.cs
- FontDifferentiator.cs
- documentsequencetextcontainer.cs
- UInt32Storage.cs
- XmlUtil.cs
- SqlColumnizer.cs
- CollectionViewGroupRoot.cs
- TextRangeProviderWrapper.cs
- GPPOINTF.cs
- PropertyNames.cs
- HitTestParameters3D.cs
- TextBounds.cs
- OleDbPropertySetGuid.cs
- FileEnumerator.cs
- SingleKeyFrameCollection.cs
- MDIWindowDialog.cs
- QueryStack.cs
- BoundPropertyEntry.cs
- TemplateBaseAction.cs
- Panel.cs
- ProfilePropertySettingsCollection.cs
- SegmentInfo.cs
- HtmlImage.cs
- baseaxisquery.cs
- URIFormatException.cs
- ComboBox.cs
- WsatEtwTraceListener.cs
- DispatchChannelSink.cs
- LocationEnvironment.cs
- XmlIgnoreAttribute.cs
- ImageFormatConverter.cs
- Encoder.cs
- SchemaInfo.cs
- Blend.cs
- DropShadowEffect.cs
- DataBindingList.cs
- BufferModeSettings.cs
- TypeSystemProvider.cs
- Events.cs
- CodeSnippetExpression.cs
- httpserverutility.cs
- MemberInfoSerializationHolder.cs
- HtmlInputButton.cs
- DetailsViewCommandEventArgs.cs
- infer.cs
- WorkerRequest.cs
- FontWeightConverter.cs
- TabItem.cs
- basemetadatamappingvisitor.cs
- CorrelationManager.cs
- RadioButton.cs
- FontUnit.cs
- XmlSequenceWriter.cs