Platforms to show: All Mac Windows Linux Cross-Platform

WindowsCredentialMBS class   New in 26.5

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Windows MBS Win Plugin 26.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes Desktop, Console & Web
Values for one credential.
Example
Var c As New WindowsCredentialMBS
c.Comment = "Xojo test"
c.TargetName = "MyApp_Login"
c.UserName = "John"
c.CredentialBlob = "Secret"
c.Type = c.TypeGeneric
c.Persist = c.PersistLocalMachine

If WindowsCredentialsMBS.Write(c) Then
MessageBox "saved"
Else
MessageBox WindowsCredentialsMBS.LastErrorMessage
End If

See KeychainMBS class for macOS/iOS.

Flags

Constant Value Description
FlagsNGCCert 128 Indicates that the credential is VSM protected.
FlagsOWFCredBlob 8
FlagsPasswordForCert 1
FlagsPromptNow 2 Bit set if the credential does not persist the CredentialBlob and the credential has not been written during this logon session. This bit is ignored on input and is set automatically when queried. more
FlagsRequireConfirmation 16
FlagsUserNameTarget 4 Bit is set if this credential has a TargetName member set to the same value as the UserName member. Such a credential is one designed to store the CredentialBlob for a specific user. For more information, see the CredMarshalCredential function. more
FlagsValidFlags &hF0FF Mask for all valid flags.
FlagsValidInputFlags &hF09F Mask for all valid input flags.
FlagsVSMProtected 64 Indicates that the credential is VSM protected.

Persistence

Constant Value Description
PersistEnterprise 3 The credential persists for all subsequent logon sessions on this same computer. It is visible to other logon sessions of this same user on this same computer and to logon sessions for this user on other computers. more
PersistLocalMachine 2 The credential persists for all subsequent logon sessions on this same computer. It is visible to other logon sessions of this same user on this same computer and not visible to logon sessions for this user on other computers.
PersistNone 0 Not set.
PersistSession 1 The credential persists for the life of the logon session. It will not be visible to other logon sessions of this same user. It will not exist after this user logs off and back on.

Types

Constant Value Description
TypeDomainCertificate 3 The credential is a certificate credential and is specific to Microsoft's authentication packages. more
TypeDomainExtended 6 The credential is supported by extended Negotiate packages.
TypeDomainPassword 2 The credential is a password credential and is specific to Microsoft's authentication packages. more
TypeGeneric 1 The credential is a generic credential. The credential will not be used by any particular authentication package. The credential will be stored securely but has no other significant characteristics.
TypeGenericCertificate 5 The credential is a certificate credential that is a generic authentication package.
TypeMaximum 7 The maximum number of supported credential types.

This class has no sub classes.

Release notes

  • Version 16.5
    • Added WindowsCredentialsMBS module, WindowsCredentialMBS and WindowsCredentialAttributeMBS classes.

Some methods using this class:

Some related classes:


The items on this page are in the following plugins: MBS Win Plugin.


WindowsCredentialAttributeMBS   -   WindowsDecompressorMBS


The biggest plugin in space...