UserNameSecurityToken Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents a security token that is based upon a user name and password.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

System.Object
  System.IdentityModel.Tokens.SecurityToken
    System.IdentityModel.Tokens.UserNameSecurityToken

Public Class UserNameSecurityToken
	Inherits SecurityToken

NameDescription
System_CAPS_pubmethodUserNameSecurityToken(String, String)

Initializes a new instance of the UserNameSecurityToken class using the specified user name and password.

System_CAPS_pubmethodUserNameSecurityToken(String, String, String)

Initializes a new instance of the UserNameSecurityToken class using the specified user name, password, and unique identifier.

NameDescription
System_CAPS_pubpropertyId

Gets a unique identifier of the security token.(Overrides SecurityToken.Id.)

System_CAPS_pubpropertyPassword

Gets the password for the user name associated with the security token.

System_CAPS_pubpropertySecurityKeys

Gets the cryptographic keys associated with the security token.(Overrides SecurityToken.SecurityKeys.)

System_CAPS_pubpropertyUserName

Gets the user name that is associated with the security token.

System_CAPS_pubpropertyValidFrom

Gets the first instant in time at which this security token is valid.(Overrides SecurityToken.ValidFrom.)

System_CAPS_pubpropertyValidTo

Gets the last instant in time at which this security token is valid.(Overrides SecurityToken.ValidTo.)

NameDescription
System_CAPS_pubmethodCanCreateKeyIdentifierClause(Of T)()

Gets a value that indicates whether this security token is capable of creating the specified key identifier. (Inherited from SecurityToken.)

System_CAPS_pubmethodCreateKeyIdentifierClause(Of T)()

Creates the specified key identifier clause.(Inherited from SecurityToken.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodMatchesKeyIdentifierClause(SecurityKeyIdentifierClause)

Returns a value that indicates whether the key identifier for this instance can be resolved to the specified key identifier.(Inherited from SecurityToken.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodResolveKeyIdentifierClause(SecurityKeyIdentifierClause)

Gets the key for the specified key identifier clause.(Inherited from SecurityToken.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Use UserNameSecurityToken class to provide authentication credentials in the form of a user name and password.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: