Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Sustainsys.​Saml2.​Saml2P.​Saml2PSecurityTokenHandler

Assembly: Sustainsys.Saml2

Inheritance: object → Microsoft.​IdentityModel.​Tokens.​SecurityTokenHandlerMicrosoft.​IdentityModel.​Tokens.​Saml2.​Saml2SecurityTokenHandler → Saml2PSecurityTokenHandler

Implemented Interfaces

Somewhat ugly subclassing to be able to access some methods that are protected on Saml2SecurityTokenHandler. The public interface of Saml2SecurityTokenHandler expects the actual assertion to be signed, which is not always the case when using Saml2-P. The assertion can be embedded in a signed response. Or the signing could be handled at transport level.

Properties

public bool
SetDefaultTimesOnTokenCreation
public int
TokenLifetimeInMinutes
public bool
CanValidateToken
TokenType
public bool
CanWriteToken
public int
MaximumTokenSizeInBytes

Methods

protected void
ProcessAuthenticationStatement​(Microsoft.​IdentityModel.​Tokens.​Saml2.​Saml2AuthenticationStatement statement, System.​Security.​Claims.​ClaimsIdentity subject, string issuer)
Process authentication statement from SAML assertion. WIF chokes if the authentication statement contains a DeclarationReference, so we clear this out before calling the base method http://referencesource.microsoft.com/#System.IdentityModel/System/IdentityModel/Tokens/Saml2SecurityTokenHandler.cs,1970
statement Authentication statement
subject Claim subject
issuer Assertion Issuer
public bool
CanReadToken​(string token)
protected void
ValidateTokenReplay​(System.​DateTime? expirationTime, string securityToken, Microsoft.​IdentityModel.​Tokens.​TokenValidationParameters validationParameters)
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object