Gets a security key identifier which contains the BinarySecretKeyIdentifierClause or EncryptedKeyIdentifierClause if the wrapping credentials is available.
Namespace: Microsoft.IdentityModel
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim secret As Byte()
Dim wrappingCredentials As EncryptingCredentials
Dim returnValue As SecurityKeyIdentifier

returnValue = KeyGenerator.GetSecurityKeyIdentifier(secret, wrappingCredentials)

Syntax

Visual Basic
Public Shared Function GetSecurityKeyIdentifier ( _
		secret As Byte(), _
		wrappingCredentials As EncryptingCredentials _
) As SecurityKeyIdentifier
C#
public static SecurityKeyIdentifier GetSecurityKeyIdentifier (
		byte[] secret,
		EncryptingCredentials wrappingCredentials
)
C++
public:
static SecurityKeyIdentifier^ GetSecurityKeyIdentifier (
		array<unsigned char>^ secret, 
		EncryptingCredentials^ wrappingCredentials
)
J#
public static SecurityKeyIdentifier GetSecurityKeyIdentifier (
		byte[] secret, 
		EncryptingCredentials wrappingCredentials
)
JScript
public static function GetSecurityKeyIdentifier (
		secret : byte[], 
		wrappingCredentials : EncryptingCredentials
) : SecurityKeyIdentifier

Parameters

secret
wrappingCredentials

Exceptions

Exception type Condition

Thread Safety

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

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also