Class MultipleSymmetricKeySecurityToken
Represents a security token which contains multiple security keys that are generated using symmetric algorithms.
Inheritance
Inherited Members
Namespace:AzureFunctionsForSharePoint.Common
Assembly:AzureFunctionsForSharePoint.Common.dll
Syntax
public class MultipleSymmetricKeySecurityToken : SecurityToken
Constructors
| Improve this Doc View SourceMultipleSymmetricKeySecurityToken(IEnumerable<Byte[]>)
Initializes a new instance of the MultipleSymmetricKeySecurityToken class.
Declaration
public MultipleSymmetricKeySecurityToken(IEnumerable<byte[]> keys)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Byte[]> | keys | An enumeration of Byte arrays that contain the symmetric keys. |
MultipleSymmetricKeySecurityToken(String, IEnumerable<Byte[]>)
Initializes a new instance of the MultipleSymmetricKeySecurityToken class.
Declaration
public MultipleSymmetricKeySecurityToken(string id, IEnumerable<byte[]> keys)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The unique identifier of the security token. |
System.Collections.Generic.IEnumerable<System.Byte[]> | keys | An enumeration of Byte arrays that contain the symmetric keys. |
Properties
| Improve this Doc View SourceId
Gets the unique identifier of the security token.
Declaration
public override string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
SecurityKeys
Gets the cryptographic keys associated with the security token.
Declaration
public override ReadOnlyCollection<SecurityKey> SecurityKeys { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Tokens.SecurityKey> |
Overrides
ValidFrom
Gets the first instant in time at which this security token is valid.
Declaration
public override DateTime ValidFrom { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Overrides
ValidTo
Gets the last instant in time at which this security token is valid.
Declaration
public override DateTime ValidTo { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Overrides
Methods
| Improve this Doc View SourceMatchesKeyIdentifierClause(SecurityKeyIdentifierClause)
Returns a value that indicates whether the key identifier for this instance can be resolved to the specified key identifier.
Declaration
public override bool MatchesKeyIdentifierClause(SecurityKeyIdentifierClause keyIdentifierClause)
Parameters
Type | Name | Description |
---|---|---|
System.IdentityModel.Tokens.SecurityKeyIdentifierClause | keyIdentifierClause | A SecurityKeyIdentifierClause to compare to this instance |
Returns
Type | Description |
---|---|
System.Boolean | true if keyIdentifierClause is a SecurityKeyIdentifierClause and it has the same unique identifier as the Id property; otherwise, false. |