SecurityTokenSerializer.CanWriteKeyIdentifier Method (SecurityKeyIdentifier)

 

Determines whether this serializer can write the specified key identifier.

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

public bool CanWriteKeyIdentifier(
	SecurityKeyIdentifier keyIdentifier
)

Parameters

keyIdentifier
Type: System.IdentityModel.Tokens.SecurityKeyIdentifier

A SecurityKeyIdentifier that represents the key identifier to write.

Return Value

Type: System.Boolean

true when this serializer can write the specified key identifier; otherwise, false.

Exception Condition
ArgumentNullException

keyIdentifier is null.

Classes that derive from the SecurityTokenSerializer class must override the CanWriteKeyIdentifierCore(SecurityKeyIdentifier) method. The CanWriteKeyIdentifier(SecurityKeyIdentifier) method calls the CanWriteKeyIdentifierCore(SecurityKeyIdentifier) method.

.NET Framework
Available since 3.0
Return to top
Show: