X509TokenProvider.CreateToken Method (StoreLocation, StoreName, String)
Creates a X509SecurityToken security token using the specified subject distinguished name for the X.509 certificate and the certificate store name and location in which it is located.
Namespace: Microsoft.Web.Services3.Design
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim location As StoreLocation
Dim storeName As StoreName
Dim subjectName As String
Dim returnValue As X509SecurityToken
returnValue = X509TokenProvider.CreateToken(location, storeName, subjectName)
Syntax
'Declaration
Overloads Public Shared Function CreateToken( _
ByVal location As StoreLocation, _
ByVal storeName As StoreName, _
ByVal subjectName As String _
) As X509SecurityToken
public static X509SecurityToken CreateToken(
StoreLocation location,
StoreName storeName,
string subjectName
);
public:
static X509SecurityToken^ CreateToken(
StoreLocation^ location,
StoreName^ storeName,
String^ subjectName
);
public static X509SecurityToken CreateToken(
StoreLocation location,
StoreName storeName,
System.String subjectName
);
public static function CreateToken(
location : StoreLocation,
storeName : StoreName,
subjectName : String
) : X509SecurityToken;
Parameters
- location
One of the System.Security.Cryptography.X509Certificates.StoreLocation values that specifies the location of the X.509 certificate store. Possible values are CurrentUser and LocalMachine.
- storeName
One of the System.Security.Cryptography.X509Certificates.StoreName values that specifies the name of the certificate store. Possible values are AddressBook, AuthRoot, CertificateAuthority, Disallowed, My, Root, TrustedPeople, and TrustedPublisher. The AddressBook store is the same store that is displayed in the Certificates MMC as OtherPeople.
- subjectName
The subject distinguished name for the X.509 certificate.
Return Value
A X509SecurityToken security token representing the X.509 certificate.
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 XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
X509TokenProvider Class
X509TokenProvider Members
Microsoft.Web.Services3.Design Namespace