SPAppPrincipalCredential.CreateFromSymmetricKey method
Creates an instance of [SPAppPrincipalCredential] that wraps a symmetric key.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function CreateFromSymmetricKey ( _
symmetricKey As SecureString, _
notBefore As DateTime, _
notAfter As DateTime _
) As SPAppPrincipalCredential
'Usage
Dim symmetricKey As SecureString
Dim notBefore As DateTime
Dim notAfter As DateTime
Dim returnValue As SPAppPrincipalCredential
returnValue = SPAppPrincipalCredential.CreateFromSymmetricKey(symmetricKey, _
notBefore, notAfter)
public static SPAppPrincipalCredential CreateFromSymmetricKey(
SecureString symmetricKey,
DateTime notBefore,
DateTime notAfter
)
Parameters
symmetricKey
Type: System.Security.SecureStringThe symmetric key.
notBefore
Type: System.DateTimeThe beginning of the date range within which the key is valid.
notAfter
Type: System.DateTimeThe ending of the date range within which the key is valid.
Return value
Type: Microsoft.SharePoint.SPAppPrincipalCredential
A new instance of [SPAppPrincipalCredential].
See also
Reference
SPAppPrincipalCredential class