C# Class Telligent.Services.SamlAuthenticationPlugin.Components.SamlTokenData

Exibir arquivo Open project: Telligent/SAML Class Usage Examples

Public Methods

Method Description
GetAttribute ( string attributeName ) : string

Returns the requested Attribute Value or throws a not found exception

GetAttribute ( string attributeName, string defaultValue ) : string

Returns the requested Attribute Value or the default value if the Attribute is not found in the collection

GetAttributes ( string delimiter, string attributeName ) : string
GetAttributes ( string attributeName ) : string[]

Returns the requested Attribute Values when multiple entries of the same name are expected

GetOAuthData ( ) : OAuthData
IsExistingUser ( ) : bool
SamlTokenData ( ) : System
Validate ( bool throwExceptions = true ) : bool

Iterate through the passed attributes and validate they meet the configuration requirements for user processing

Private Methods

Method Description
DistroySecureCookie ( string tokenKey ) : void
GetFromSecureCookie ( string tokenKey ) : SamlTokenData
SaveToSecureCookie ( ) : System.Guid

Method Details

GetAttribute() public method

Returns the requested Attribute Value or throws a not found exception
public GetAttribute ( string attributeName ) : string
attributeName string
return string

GetAttribute() public method

Returns the requested Attribute Value or the default value if the Attribute is not found in the collection
public GetAttribute ( string attributeName, string defaultValue ) : string
attributeName string
defaultValue string
return string

GetAttributes() public method

public GetAttributes ( string delimiter, string attributeName ) : string
delimiter string
attributeName string
return string

GetAttributes() public method

Returns the requested Attribute Values when multiple entries of the same name are expected
public GetAttributes ( string attributeName ) : string[]
attributeName string
return string[]

GetOAuthData() public method

public GetOAuthData ( ) : OAuthData
return OAuthData

IsExistingUser() public method

public IsExistingUser ( ) : bool
return bool

SamlTokenData() public method

public SamlTokenData ( ) : System
return System

Validate() public method

Iterate through the passed attributes and validate they meet the configuration requirements for user processing
public Validate ( bool throwExceptions = true ) : bool
throwExceptions bool
return bool