Share via


UsernameToken Members

Represents security credentials in the form of a user name and/or password.

The following tables list the members exposed by the UsernameToken type.

Public Constructors

  Name Description
UsernameToken Overloaded.  

Top

Public Properties

  Name Description
public property AnyElements Gets the XML elements specified within the <any> element.
public property Created Gets the token's creation date and time.
public property Id  Gets or sets a unique identifier of the token.(inherited from SecurityToken)
public property IsCurrent Overridden. Gets a value indicating whether the security token is currently valid.
public property IsExpired Overridden. Gets a value indicating whether the UsernameToken is expired.
public property Key Overridden. Gets the key for the UsernameToken security token.
public property KeyBytes Gets the key for the token.
public property KeyIdentifier  A reference that uniquely identifies the SecurityToken instance.(inherited from SecurityToken)
public property KeyInfo  Gets a System.Security.Cryptography.Xml.KeyInfo that can be used to refer to this security token when the token is not included in a SOAP message. (inherited from SecurityToken)
public property Label Gets or sets the label parameter for the key derivation algorithm.
public property Nonce Gets the nonce value for the token.
public property Password Gets the password for the user name associated with the security token.
public property PasswordDigest Gets the SHA-1 hash of the password for the security token, if one was included in the message.
public property PasswordOption Gets or sets how the password associated with the security token is sent in SOAP messages.
public property Principal  Gets or sets the principal object for the security token.(inherited from SecurityToken)
public property RequiresRenewal  Gets a value indicating whether the security token requires renewal.(inherited from SecurityToken)
public property SupportsDataEncryption Overridden. Gets a value indicating whether the current token can be used for data encryption.
public property SupportsDigitalSignature Overridden. Gets a value indicating whether the current token can be used to digitally sign a SOAP message.
public property TokenType  Gets the type of the security token.(inherited from SecurityToken)
public property Username Gets the user name associated with the token.

Top

Public Methods

(see also Protected Methods )

  Name Description
public method static ComputePasswordDigest Returns the SHA-1 hash for a nonce, a timestamp, and a password.
public method Equals Overloaded.  
public method GetHashCode Overridden. Returns the hash code for the UsernameToken.
public method GetSignedTokenXml  Gets an XML representation of the current instance digitally signed by another security token. (inherited from SecurityToken)
public method GetType  (inherited from Object )
public method GetXml Overridden. Generates an XML representation of the token.
public method LoadXml Overridden. Parses an XML string containing a token.
public method Mutate Regenerates the instance specific details of the UsernameToken .
public method ToString  (inherited from Object )
public method VerifySignedTokenXml  Verifies the digital signature of a security token that is an XML representation. (inherited from SecurityToken)

Top

Protected Methods

  Name Description
protected method Finalize  (inherited from Object )
protected method MemberwiseClone  (inherited from Object )

Top

Explicit Interface Implementations

  Name Description
Microsoft.Web.Services2.Security.Tokens.IMutableSecurityToken.Clone  

Top

See Also

Reference

UsernameToken Class
Microsoft.Web.Services2.Security.Tokens Namespace