Documentation
¶
Overview ¶
Package securityinterface provides a fluent Go API over the macOS SecurityInterface framework.
Index ¶
- func SFAuthorizationPluginViewUserNameKey() objc.ID
- func SFAuthorizationPluginViewUserShortNameKey() objc.ID
- func SFCertificateViewDisclosureStateDidChange() objc.ID
- func SFDisplayViewException() objc.ID
- type AuthorizationPluginView
- func (x *AuthorizationPluginView) ButtonPressed(inButtonType SFButtonType)
- func (x *AuthorizationPluginView) Callbacks() unsafe.Pointer
- func (x *AuthorizationPluginView) DidActivate()
- func (x *AuthorizationPluginView) DidDeactivate()
- func (x *AuthorizationPluginView) DisplayView()
- func (x *AuthorizationPluginView) EngineRef() unsafe.Pointer
- func (x *AuthorizationPluginView) FirstKeyView() *appkit.NSView
- func (x *AuthorizationPluginView) FirstResponder() *appkit.NSResponder
- func (x *AuthorizationPluginView) ID() objc.ID
- func (x *AuthorizationPluginView) LastError() unsafe.Pointer
- func (x *AuthorizationPluginView) LastKeyView() *appkit.NSView
- func (x *AuthorizationPluginView) SetButtonEnabled(inButtonType SFButtonType, inEnabled bool)
- func (x *AuthorizationPluginView) SetEnabled(inEnabled bool)
- func (x *AuthorizationPluginView) Unwrap() *raw.SFAuthorizationPluginView
- func (x *AuthorizationPluginView) UpdateView()
- func (x *AuthorizationPluginView) ViewForType(inType SFViewType) *appkit.NSView
- func (x *AuthorizationPluginView) WillActivateWithUser(inUserInformation *foundation.NSDictionary[objc.ID, objc.ID])
- type AuthorizationPluginViewable
- type AuthorizationView
- func (x *AuthorizationView) Authorization() *securityfoundation.SFAuthorization
- func (x *AuthorizationView) AuthorizationRights() *security.AuthorizationItemSet
- func (x *AuthorizationView) AuthorizationState() SFAuthorizationViewState
- func (x *AuthorizationView) Authorize(inSender objc.ID) bool
- func (x *AuthorizationView) Deauthorize(inSender objc.ID) bool
- func (x *AuthorizationView) Delegate() objc.ID
- func (x *AuthorizationView) ID() objc.ID
- func (x *AuthorizationView) IsEnabled() bool
- func (x *AuthorizationView) SetAuthorizationRights(authorizationRights *security.AuthorizationItemSet)
- func (x *AuthorizationView) SetAutoupdate(autoupdate bool)
- func (x *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)
- func (x *AuthorizationView) SetDelegate(delegate objc.ID)
- func (x *AuthorizationView) SetEnabled(enabled bool)
- func (x *AuthorizationView) SetFlags(flags security.AuthorizationFlags)
- func (x *AuthorizationView) SetString(authorizationString string)
- func (x *AuthorizationView) Unwrap() *raw.SFAuthorizationView
- func (x *AuthorizationView) UpdateStatus(inSender objc.ID) bool
- type AuthorizationViewable
- type CertificatePanel
- func (x *CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, ...)
- func (x *CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, ...)
- func (x *CertificatePanel) CertificateView() *CertificateView
- func (x *CertificatePanel) HelpAnchor() string
- func (x *CertificatePanel) ID() objc.ID
- func (x *CertificatePanel) Policies() *foundation.NSArray[objc.ID]
- func (x *CertificatePanel) RunModalForCertificatesShowGroup(certificates *foundation.NSArray[objc.ID], showGroup bool) int
- func (x *CertificatePanel) RunModalForTrustShowGroup(trust unsafe.Pointer, showGroup bool) int
- func (x *CertificatePanel) SetAlternateButtonTitle(title string)
- func (x *CertificatePanel) SetDefaultButtonTitle(title string)
- func (x *CertificatePanel) SetHelpAnchor(anchor string)
- func (x *CertificatePanel) SetPolicies(policies objc.ID)
- func (x *CertificatePanel) SetShowsHelp(showsHelp bool)
- func (x *CertificatePanel) ShowsHelp() bool
- func (x *CertificatePanel) Unwrap() *raw.SFCertificatePanel
- type CertificatePanelProvider
- type CertificatePanelable
- type CertificateTrustPanel
- func (x *CertificateTrustPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, ...)
- func (x *CertificateTrustPanel) ID() objc.ID
- func (x *CertificateTrustPanel) InformativeText() string
- func (x *CertificateTrustPanel) RunModalForTrustMessage(trust unsafe.Pointer, message string) int
- func (x *CertificateTrustPanel) SetInformativeText(informativeText string)
- func (x *CertificateTrustPanel) Unwrap() *raw.SFCertificateTrustPanel
- type CertificateTrustPanelable
- type CertificateView
- func (x *CertificateView) Certificate() unsafe.Pointer
- func (x *CertificateView) DetailsDisclosed() bool
- func (x *CertificateView) DetailsDisplayed() bool
- func (x *CertificateView) ID() objc.ID
- func (x *CertificateView) IsEditable() bool
- func (x *CertificateView) IsTrustDisplayed() bool
- func (x *CertificateView) Policies() *foundation.NSArray[objc.ID]
- func (x *CertificateView) PoliciesDisclosed() bool
- func (x *CertificateView) SaveTrustSettings()
- func (x *CertificateView) SetCertificate(certificate unsafe.Pointer)
- func (x *CertificateView) SetDetailsDisclosed(disclosed bool)
- func (x *CertificateView) SetDisplayDetails(display bool)
- func (x *CertificateView) SetDisplayTrust(display bool)
- func (x *CertificateView) SetEditableTrust(editable bool)
- func (x *CertificateView) SetPolicies(policies objc.ID)
- func (x *CertificateView) SetPoliciesDisclosed(disclosed bool)
- func (x *CertificateView) Unwrap() *raw.SFCertificateView
- type CertificateViewable
- type ChooseIdentityPanel
- func (x *ChooseIdentityPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, ...)
- func (x *ChooseIdentityPanel) Domain() string
- func (x *ChooseIdentityPanel) HelpAnchor() string
- func (x *ChooseIdentityPanel) ID() objc.ID
- func (x *ChooseIdentityPanel) Identity() unsafe.Pointer
- func (x *ChooseIdentityPanel) InformativeText() string
- func (x *ChooseIdentityPanel) Policies() *foundation.NSArray[objc.ID]
- func (x *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities *foundation.NSArray[objc.ID], message string) int
- func (x *ChooseIdentityPanel) SetAlternateButtonTitle(title string)
- func (x *ChooseIdentityPanel) SetDefaultButtonTitle(title string)
- func (x *ChooseIdentityPanel) SetDomain(domainString string)
- func (x *ChooseIdentityPanel) SetHelpAnchor(anchor string)
- func (x *ChooseIdentityPanel) SetInformativeText(informativeText string)
- func (x *ChooseIdentityPanel) SetPolicies(policies objc.ID)
- func (x *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)
- func (x *ChooseIdentityPanel) ShowsHelp() bool
- func (x *ChooseIdentityPanel) Unwrap() *raw.SFChooseIdentityPanel
- type ChooseIdentityPanelable
- type ChooseIdentityTableCellView
- func (x *ChooseIdentityTableCellView) ID() objc.ID
- func (x *ChooseIdentityTableCellView) IssuerTextField() *appkit.NSTextField
- func (x *ChooseIdentityTableCellView) SetIssuerTextField(issuerTextField *appkit.NSTextField)
- func (x *ChooseIdentityTableCellView) Unwrap() *raw.SFChooseIdentityTableCellView
- func (x *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField *appkit.NSTextField) *ChooseIdentityTableCellView
- type ChooseIdentityTableCellViewable
- type KeychainSavePanel
- type KeychainSavePanelable
- type KeychainSettingsPanel
- func (x *KeychainSettingsPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, ...)
- func (x *KeychainSettingsPanel) ID() objc.ID
- func (x *KeychainSettingsPanel) RunModalForSettingsKeychain(settings *security.SecKeychainSettings, keychain unsafe.Pointer) int
- func (x *KeychainSettingsPanel) Unwrap() *raw.SFKeychainSettingsPanel
- type KeychainSettingsPanelable
- type SFAuthorizationViewState
- type SFButtonType
- type SFViewType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SFAuthorizationPluginViewUserNameKey ¶ added in v0.8.0
SFAuthorizationPluginViewUserNameKey returns the string constant SFAuthorizationPluginViewUserNameKey as an objc.ID, for use as a dictionary key or selector argument.
func SFAuthorizationPluginViewUserShortNameKey ¶ added in v0.8.0
SFAuthorizationPluginViewUserShortNameKey returns the string constant SFAuthorizationPluginViewUserShortNameKey as an objc.ID, for use as a dictionary key or selector argument.
func SFCertificateViewDisclosureStateDidChange ¶ added in v0.8.0
SFCertificateViewDisclosureStateDidChange returns the string constant SFCertificateViewDisclosureStateDidChange as an objc.ID, for use as a dictionary key or selector argument.
func SFDisplayViewException ¶ added in v0.8.0
SFDisplayViewException returns the string constant SFDisplayViewException as an objc.ID, for use as a dictionary key or selector argument.
Types ¶
type AuthorizationPluginView ¶
type AuthorizationPluginView struct {
// contains filtered or unexported fields
}
Allows authorization plug-in developers to create a custom view their plug-in can display.
AuthorizationPluginView wraps raw.SFAuthorizationPluginView with a fluent Go API.
func AuthorizationPluginViewFromID ¶
func AuthorizationPluginViewFromID(id objc.ID) *AuthorizationPluginView
AuthorizationPluginViewFromID adopts an existing object pointer as a AuthorizationPluginView (nil for 0).
func NewAuthorizationPluginViewWithCallbacksAndEngineRef ¶
func NewAuthorizationPluginViewWithCallbacksAndEngineRef(callbacks unsafe.Pointer, engineRef unsafe.Pointer) *AuthorizationPluginView
Initializes a new authorization plug-in view with the specified callbacks and authorization engine handle.
NewAuthorizationPluginViewWithCallbacksAndEngineRef creates a new AuthorizationPluginView.
func (*AuthorizationPluginView) ButtonPressed ¶
func (x *AuthorizationPluginView) ButtonPressed(inButtonType SFButtonType)
Tells the authorization plug-in that the user pressed a button in the custom view.
ButtonPressed calls the underlying ButtonPressed.
func (*AuthorizationPluginView) Callbacks ¶
func (x *AuthorizationPluginView) Callbacks() unsafe.Pointer
Returns the authorization callbacks structure with which this instance was initialized.
Callbacks calls the underlying Callbacks.
func (*AuthorizationPluginView) DidActivate ¶
func (x *AuthorizationPluginView) DidActivate()
Tells the authorization plug-in when its user interface has become active.
DidActivate calls the underlying DidActivate.
func (*AuthorizationPluginView) DidDeactivate ¶
func (x *AuthorizationPluginView) DidDeactivate()
Tells the authorization plug-in that its user interface has been deactivated.
DidDeactivate calls the underlying DidDeactivate.
func (*AuthorizationPluginView) DisplayView ¶
func (x *AuthorizationPluginView) DisplayView()
Displays the user interface provided by the authorization plug-in view subclass.
DisplayView calls the underlying DisplayView.
func (*AuthorizationPluginView) EngineRef ¶
func (x *AuthorizationPluginView) EngineRef() unsafe.Pointer
Returns the authorization engine handle with which this instance was initialized.
EngineRef calls the underlying EngineRef.
func (*AuthorizationPluginView) FirstKeyView ¶
func (x *AuthorizationPluginView) FirstKeyView() *appkit.NSView
Returns the first view in the keyboard loop of the view.
FirstKeyView calls the underlying FirstKeyView.
func (*AuthorizationPluginView) FirstResponder ¶
func (x *AuthorizationPluginView) FirstResponder() *appkit.NSResponder
Returns the view that should get focus for keyboard events.
FirstResponder calls the underlying FirstResponder.
func (*AuthorizationPluginView) ID ¶
func (x *AuthorizationPluginView) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*AuthorizationPluginView) LastError ¶
func (x *AuthorizationPluginView) LastError() unsafe.Pointer
Returns the last error that occurred during evaluation.
LastError calls the underlying LastError.
func (*AuthorizationPluginView) LastKeyView ¶
func (x *AuthorizationPluginView) LastKeyView() *appkit.NSView
Returns the last view in the keyboard loop of the view.
LastKeyView calls the underlying LastKeyView.
func (*AuthorizationPluginView) SetButtonEnabled ¶
func (x *AuthorizationPluginView) SetButtonEnabled(inButtonType SFButtonType, inEnabled bool)
Enables or disables a button in the authorization plug-in’s user interface.
SetButtonEnabled calls the underlying SetButtonEnabled.
func (*AuthorizationPluginView) SetEnabled ¶
func (x *AuthorizationPluginView) SetEnabled(inEnabled bool)
Enables or disables the controls in the authorization plug-in’s view.
SetEnabled calls the underlying SetEnabled.
func (*AuthorizationPluginView) Unwrap ¶
func (x *AuthorizationPluginView) Unwrap() *raw.SFAuthorizationPluginView
Unwrap returns the underlying raw.SFAuthorizationPluginView.
func (*AuthorizationPluginView) UpdateView ¶
func (x *AuthorizationPluginView) UpdateView()
Tells the authorization plug-in to get and display the appropriate view in the authorization plug-in’s user interface.
UpdateView calls the underlying UpdateView.
func (*AuthorizationPluginView) ViewForType ¶
func (x *AuthorizationPluginView) ViewForType(inType SFViewType) *appkit.NSView
Returns the appropriate view object for the specified view type.
ViewForType calls the underlying ViewForType.
func (*AuthorizationPluginView) WillActivateWithUser ¶
func (x *AuthorizationPluginView) WillActivateWithUser(inUserInformation *foundation.NSDictionary[objc.ID, objc.ID])
Tells the authorization plug-in that its user interface is about to be made active by the Apple-provided Security Agent.
WillActivateWithUser calls the underlying WillActivateWithUser.
type AuthorizationPluginViewable ¶
type AuthorizationPluginViewable interface {
Unwrap() *raw.SFAuthorizationPluginView
EngineRef() unsafe.Pointer
Callbacks() unsafe.Pointer
ButtonPressed(inButtonType SFButtonType)
LastError() unsafe.Pointer
DidActivate()
WillActivateWithUser(inUserInformation *foundation.NSDictionary[objc.ID, objc.ID])
DidDeactivate()
FirstKeyView() *appkit.NSView
FirstResponder() *appkit.NSResponder
LastKeyView() *appkit.NSView
SetEnabled(inEnabled bool)
ViewForType(inType SFViewType) *appkit.NSView
DisplayView()
SetButtonEnabled(inButtonType SFButtonType, inEnabled bool)
UpdateView()
}
AuthorizationPluginViewable is the interface implemented by AuthorizationPluginView, for mocking and DI.
type AuthorizationView ¶
type AuthorizationView struct {
// contains filtered or unexported fields
}
The class responsible for displaying a lock icon that can be used to indicate that a user interface has restricted access.
AuthorizationView wraps raw.SFAuthorizationView with a fluent Go API.
func AuthorizationViewFromID ¶
func AuthorizationViewFromID(id objc.ID) *AuthorizationView
AuthorizationViewFromID adopts an existing object pointer as a AuthorizationView (nil for 0).
func NewAuthorizationView ¶
func NewAuthorizationView() *AuthorizationView
NewAuthorizationView creates a new AuthorizationView.
func (*AuthorizationView) Authorization ¶
func (x *AuthorizationView) Authorization() *securityfoundation.SFAuthorization
Returns the authorization object associated with this view.
Authorization calls the underlying Authorization.
func (*AuthorizationView) AuthorizationRights ¶
func (x *AuthorizationView) AuthorizationRights() *security.AuthorizationItemSet
Returns the authorization rights for this view.
AuthorizationRights calls the underlying AuthorizationRights.
func (*AuthorizationView) AuthorizationState ¶
func (x *AuthorizationView) AuthorizationState() SFAuthorizationViewState
Returns the current state of the authorization view.
AuthorizationState calls the underlying AuthorizationState.
func (*AuthorizationView) Authorize ¶
func (x *AuthorizationView) Authorize(inSender objc.ID) bool
Attempts to unlock the lock icon in the view.
Authorize calls the underlying Authorize.
func (*AuthorizationView) Deauthorize ¶
func (x *AuthorizationView) Deauthorize(inSender objc.ID) bool
Sets the authorization state to unauthorized and locks the lock icon in the view.
Deauthorize calls the underlying Deauthorize.
func (*AuthorizationView) Delegate ¶
func (x *AuthorizationView) Delegate() objc.ID
Returns the delegate for this view.
Delegate calls the underlying Delegate.
func (*AuthorizationView) ID ¶
func (x *AuthorizationView) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*AuthorizationView) IsEnabled ¶
func (x *AuthorizationView) IsEnabled() bool
Indicates whether the authorization view is enabled (true) or disabled (false).
IsEnabled calls the underlying IsEnabled.
func (*AuthorizationView) SetAuthorizationRights ¶
func (x *AuthorizationView) SetAuthorizationRights(authorizationRights *security.AuthorizationItemSet)
Sets the authorization rights for this view.
SetAuthorizationRights calls the underlying SetAuthorizationRights.
func (*AuthorizationView) SetAutoupdate ¶
func (x *AuthorizationView) SetAutoupdate(autoupdate bool)
Sets the authorization view to update itself automatically.
SetAutoupdate calls the underlying SetAutoupdate.
func (*AuthorizationView) SetAutoupdateInterval ¶
func (x *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)
Sets the authorization view to update itself at a specific interval.
SetAutoupdateInterval calls the underlying SetAutoupdateInterval.
func (*AuthorizationView) SetDelegate ¶
func (x *AuthorizationView) SetDelegate(delegate objc.ID)
Sets the delegate for this authorization view.
SetDelegate calls the underlying SetDelegate.
func (*AuthorizationView) SetEnabled ¶
func (x *AuthorizationView) SetEnabled(enabled bool)
Sets the current state of the authorization view.
SetEnabled calls the underlying SetEnabled.
func (*AuthorizationView) SetFlags ¶
func (x *AuthorizationView) SetFlags(flags security.AuthorizationFlags)
Sets the current authorization flags for the view.
SetFlags calls the underlying SetFlags.
func (*AuthorizationView) SetString ¶
func (x *AuthorizationView) SetString(authorizationString string)
Sets the requested-right string to use with the default authorization rights set.
SetString calls the underlying SetString.
func (*AuthorizationView) Unwrap ¶
func (x *AuthorizationView) Unwrap() *raw.SFAuthorizationView
Unwrap returns the underlying raw.SFAuthorizationView.
func (*AuthorizationView) UpdateStatus ¶
func (x *AuthorizationView) UpdateStatus(inSender objc.ID) bool
Manually updates the authorization view.
UpdateStatus calls the underlying UpdateStatus.
type AuthorizationViewable ¶
type AuthorizationViewable interface {
Unwrap() *raw.SFAuthorizationView
SetString(authorizationString string)
SetAuthorizationRights(authorizationRights *security.AuthorizationItemSet)
AuthorizationRights() *security.AuthorizationItemSet
Authorization() *securityfoundation.SFAuthorization
UpdateStatus(inSender objc.ID) bool
SetAutoupdate(autoupdate bool)
SetAutoupdateInterval(autoupdate bool, interval float64)
AuthorizationState() SFAuthorizationViewState
SetEnabled(enabled bool)
IsEnabled() bool
SetFlags(flags security.AuthorizationFlags)
SetDelegate(delegate objc.ID)
Delegate() objc.ID
Authorize(inSender objc.ID) bool
}
AuthorizationViewable is the interface implemented by AuthorizationView, for mocking and DI.
type CertificatePanel ¶
type CertificatePanel struct {
// contains filtered or unexported fields
}
A panel or sheet that displays one or more certificates.
CertificatePanel wraps raw.SFCertificatePanel with a fluent Go API.
func CertificatePanelFromID ¶
func CertificatePanelFromID(id objc.ID) *CertificatePanel
CertificatePanelFromID adopts an existing object pointer as a CertificatePanel (nil for 0).
func NewCertificatePanel ¶
func NewCertificatePanel() *CertificatePanel
NewCertificatePanel creates a new CertificatePanel.
func SharedCertificatePanel ¶
func SharedCertificatePanel() *CertificatePanel
SharedCertificatePanel calls the underlying SFCertificatePanelSharedCertificatePanel.
func (*CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup ¶
func (x *CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, certificates *foundation.NSArray[objc.ID], showGroup bool)
Displays one or more certificates in a modal sheet.
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup.
func (*CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup ¶
func (x *CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, trust unsafe.Pointer, showGroup bool)
Displays a certificate chain in a modal sheet.
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup.
func (*CertificatePanel) CertificateView ¶
func (x *CertificatePanel) CertificateView() *CertificateView
Returns the certificate view for the modal panel.
CertificateView calls the underlying CertificateView.
func (*CertificatePanel) HelpAnchor ¶
func (x *CertificatePanel) HelpAnchor() string
Returns the current help anchor string for the sheet or panel.
HelpAnchor calls the underlying HelpAnchor.
func (*CertificatePanel) ID ¶
func (x *CertificatePanel) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*CertificatePanel) Policies ¶
func (x *CertificatePanel) Policies() *foundation.NSArray[objc.ID]
Returns an array of policies used to evaluate the status of the displayed certificates.
Policies calls the underlying Policies.
func (*CertificatePanel) RunModalForCertificatesShowGroup ¶
func (x *CertificatePanel) RunModalForCertificatesShowGroup(certificates *foundation.NSArray[objc.ID], showGroup bool) int
Displays one or more specified certificates in a modal panel.
RunModalForCertificatesShowGroup calls the underlying RunModalForCertificatesShowGroup.
func (*CertificatePanel) RunModalForTrustShowGroup ¶
func (x *CertificatePanel) RunModalForTrustShowGroup(trust unsafe.Pointer, showGroup bool) int
Displays a certificate chain in a modal panel.
RunModalForTrustShowGroup calls the underlying RunModalForTrustShowGroup.
func (*CertificatePanel) SetAlternateButtonTitle ¶
func (x *CertificatePanel) SetAlternateButtonTitle(title string)
Customizes the title of the alternate button.
SetAlternateButtonTitle calls the underlying SetAlternateButtonTitle.
func (*CertificatePanel) SetDefaultButtonTitle ¶
func (x *CertificatePanel) SetDefaultButtonTitle(title string)
Customizes the title of the default button.
SetDefaultButtonTitle calls the underlying SetDefaultButtonTitle.
func (*CertificatePanel) SetHelpAnchor ¶
func (x *CertificatePanel) SetHelpAnchor(anchor string)
Sets the help anchor string for the sheet or modal panel.
SetHelpAnchor calls the underlying SetHelpAnchor.
func (*CertificatePanel) SetPolicies ¶
func (x *CertificatePanel) SetPolicies(policies objc.ID)
Specifies one or more policies that apply to the displayed certificates.
SetPolicies calls the underlying SetPolicies.
func (*CertificatePanel) SetShowsHelp ¶
func (x *CertificatePanel) SetShowsHelp(showsHelp bool)
Displays a Help button in the sheet or panel.
SetShowsHelp calls the underlying SetShowsHelp.
func (*CertificatePanel) ShowsHelp ¶
func (x *CertificatePanel) ShowsHelp() bool
Indicates whether the help button is currently set to be displayed.
ShowsHelp calls the underlying ShowsHelp.
func (*CertificatePanel) Unwrap ¶
func (x *CertificatePanel) Unwrap() *raw.SFCertificatePanel
Unwrap returns the underlying raw.SFCertificatePanel.
type CertificatePanelProvider ¶
type CertificatePanelProvider interface {
// contains filtered or unexported methods
}
CertificatePanelProvider is implemented by CertificatePanel and any idiomatic type wrapping a SFCertificatePanel subclass.
type CertificatePanelable ¶
type CertificatePanelable interface {
Unwrap() *raw.SFCertificatePanel
RunModalForTrustShowGroup(trust unsafe.Pointer, showGroup bool) int
RunModalForCertificatesShowGroup(certificates *foundation.NSArray[objc.ID], showGroup bool) int
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, trust unsafe.Pointer, showGroup bool)
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, certificates *foundation.NSArray[objc.ID], showGroup bool)
SetPolicies(policies objc.ID)
Policies() *foundation.NSArray[objc.ID]
SetDefaultButtonTitle(title string)
SetAlternateButtonTitle(title string)
SetShowsHelp(showsHelp bool)
ShowsHelp() bool
SetHelpAnchor(anchor string)
HelpAnchor() string
CertificateView() *CertificateView
}
CertificatePanelable is the interface implemented by CertificatePanel, for mocking and DI.
type CertificateTrustPanel ¶
type CertificateTrustPanel struct {
// contains filtered or unexported fields
}
A panel or sheet that lets the user edit the trust settings in any of the certificates in a certificate chain.
CertificateTrustPanel wraps raw.SFCertificateTrustPanel with a fluent Go API.
func CertificateTrustPanelFromID ¶
func CertificateTrustPanelFromID(id objc.ID) *CertificateTrustPanel
CertificateTrustPanelFromID adopts an existing object pointer as a CertificateTrustPanel (nil for 0).
func NewCertificateTrustPanel ¶
func NewCertificateTrustPanel() *CertificateTrustPanel
NewCertificateTrustPanel creates a new CertificateTrustPanel.
func SharedCertificateTrustPanel ¶
func SharedCertificateTrustPanel() *CertificateTrustPanel
SharedCertificateTrustPanel calls the underlying SFCertificateTrustPanelSharedCertificateTrustPanel.
func (*CertificateTrustPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage ¶
func (x *CertificateTrustPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, trust unsafe.Pointer, message string)
Displays a modal sheet that shows the results of a certificate trust evaluation and that allows the user to edit trust settings.
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage.
func (*CertificateTrustPanel) ID ¶
func (x *CertificateTrustPanel) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*CertificateTrustPanel) InformativeText ¶
func (x *CertificateTrustPanel) InformativeText() string
Returns the (optional) informative text currently displayed in the panel.
InformativeText calls the underlying InformativeText.
func (*CertificateTrustPanel) RunModalForTrustMessage ¶
func (x *CertificateTrustPanel) RunModalForTrustMessage(trust unsafe.Pointer, message string) int
Displays a modal panel that shows the results of a certificate trust evaluation and that allows the user to edit trust settings.
RunModalForTrustMessage calls the underlying RunModalForTrustMessage.
func (*CertificateTrustPanel) SetInformativeText ¶
func (x *CertificateTrustPanel) SetInformativeText(informativeText string)
Sets the (optional) informative text displayed in the panel.
SetInformativeText calls the underlying SetInformativeText.
func (*CertificateTrustPanel) Unwrap ¶
func (x *CertificateTrustPanel) Unwrap() *raw.SFCertificateTrustPanel
Unwrap returns the underlying raw.SFCertificateTrustPanel.
type CertificateTrustPanelable ¶
type CertificateTrustPanelable interface {
Unwrap() *raw.SFCertificateTrustPanel
RunModalForTrustMessage(trust unsafe.Pointer, message string) int
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, trust unsafe.Pointer, message string)
SetInformativeText(informativeText string)
InformativeText() string
}
CertificateTrustPanelable is the interface implemented by CertificateTrustPanel, for mocking and DI.
type CertificateView ¶
type CertificateView struct {
// contains filtered or unexported fields
}
A view that displays the contents of a certificate, with options to display certificate details, display trust settings, and allow users to edit a certificate’s trust settings.
CertificateView wraps raw.SFCertificateView with a fluent Go API.
func CertificateViewFromID ¶
func CertificateViewFromID(id objc.ID) *CertificateView
CertificateViewFromID adopts an existing object pointer as a CertificateView (nil for 0).
func NewCertificateView ¶
func NewCertificateView() *CertificateView
NewCertificateView creates a new CertificateView.
func (*CertificateView) Certificate ¶
func (x *CertificateView) Certificate() unsafe.Pointer
Returns the certificate currently displayed in the view.
Certificate calls the underlying Certificate.
func (*CertificateView) DetailsDisclosed ¶
func (x *CertificateView) DetailsDisclosed() bool
Returns whether the view currently shows the certificate’s details.
DetailsDisclosed calls the underlying DetailsDisclosed.
func (*CertificateView) DetailsDisplayed ¶
func (x *CertificateView) DetailsDisplayed() bool
Indicates if the view currently shows the certificate’s details.
DetailsDisplayed calls the underlying DetailsDisplayed.
func (*CertificateView) ID ¶
func (x *CertificateView) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*CertificateView) IsEditable ¶
func (x *CertificateView) IsEditable() bool
Indicates if the view allows the user to edit the certificate’s trust.
IsEditable calls the underlying IsEditable.
func (*CertificateView) IsTrustDisplayed ¶
func (x *CertificateView) IsTrustDisplayed() bool
Indicates if the view currently shows the certificate’s trust settings.
IsTrustDisplayed calls the underlying IsTrustDisplayed.
func (*CertificateView) Policies ¶
func (x *CertificateView) Policies() *foundation.NSArray[objc.ID]
Returns an array of policies used to evaluate the status of the displayed certificate.
Policies calls the underlying Policies.
func (*CertificateView) PoliciesDisclosed ¶
func (x *CertificateView) PoliciesDisclosed() bool
Returns whether the trust policy subview is disclosed.
PoliciesDisclosed calls the underlying PoliciesDisclosed.
func (*CertificateView) SaveTrustSettings ¶
func (x *CertificateView) SaveTrustSettings()
Saves the user’s current trust settings for the displayed certificate.
SaveTrustSettings calls the underlying SaveTrustSettings.
func (*CertificateView) SetCertificate ¶
func (x *CertificateView) SetCertificate(certificate unsafe.Pointer)
Specifies the certificate that’s displayed in the view.
SetCertificate calls the underlying SetCertificate.
func (*CertificateView) SetDetailsDisclosed ¶
func (x *CertificateView) SetDetailsDisclosed(disclosed bool)
Sets whether the certificate details subview is disclosed.
SetDetailsDisclosed calls the underlying SetDetailsDisclosed.
func (*CertificateView) SetDisplayDetails ¶
func (x *CertificateView) SetDisplayDetails(display bool)
Specifies whether the user can see the certificate details.
SetDisplayDetails calls the underlying SetDisplayDetails.
func (*CertificateView) SetDisplayTrust ¶
func (x *CertificateView) SetDisplayTrust(display bool)
Specifies whether the user can see the certificate’s trust settings.
SetDisplayTrust calls the underlying SetDisplayTrust.
func (*CertificateView) SetEditableTrust ¶
func (x *CertificateView) SetEditableTrust(editable bool)
Specifies whether the user can edit the certificate’s trust settings.
SetEditableTrust calls the underlying SetEditableTrust.
func (*CertificateView) SetPolicies ¶
func (x *CertificateView) SetPolicies(policies objc.ID)
Specifies the policies to use when evaluating this certificate’s status.
SetPolicies calls the underlying SetPolicies.
func (*CertificateView) SetPoliciesDisclosed ¶
func (x *CertificateView) SetPoliciesDisclosed(disclosed bool)
Specifies whether the trust policy settings subview is disclosed.
SetPoliciesDisclosed calls the underlying SetPoliciesDisclosed.
func (*CertificateView) Unwrap ¶
func (x *CertificateView) Unwrap() *raw.SFCertificateView
Unwrap returns the underlying raw.SFCertificateView.
type CertificateViewable ¶
type CertificateViewable interface {
Unwrap() *raw.SFCertificateView
SetCertificate(certificate unsafe.Pointer)
Certificate() unsafe.Pointer
SetPolicies(policies objc.ID)
Policies() *foundation.NSArray[objc.ID]
SetEditableTrust(editable bool)
IsEditable() bool
SetDisplayTrust(display bool)
IsTrustDisplayed() bool
SaveTrustSettings()
SetDisplayDetails(display bool)
DetailsDisplayed() bool
SetDetailsDisclosed(disclosed bool)
DetailsDisclosed() bool
SetPoliciesDisclosed(disclosed bool)
PoliciesDisclosed() bool
}
CertificateViewable is the interface implemented by CertificateView, for mocking and DI.
type ChooseIdentityPanel ¶
type ChooseIdentityPanel struct {
// contains filtered or unexported fields
}
A panel or sheet containing a list of identities that a user can choose from.
ChooseIdentityPanel wraps raw.SFChooseIdentityPanel with a fluent Go API.
func ChooseIdentityPanelFromID ¶
func ChooseIdentityPanelFromID(id objc.ID) *ChooseIdentityPanel
ChooseIdentityPanelFromID adopts an existing object pointer as a ChooseIdentityPanel (nil for 0).
func NewChooseIdentityPanel ¶
func NewChooseIdentityPanel() *ChooseIdentityPanel
NewChooseIdentityPanel creates a new ChooseIdentityPanel.
func SharedChooseIdentityPanel ¶
func SharedChooseIdentityPanel() *ChooseIdentityPanel
SharedChooseIdentityPanel calls the underlying SFChooseIdentityPanelSharedChooseIdentityPanel.
func (*ChooseIdentityPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage ¶
func (x *ChooseIdentityPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, identities *foundation.NSArray[objc.ID], message string)
Displays a list of identities in a modal sheet from which the user can select an identity.
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage.
func (*ChooseIdentityPanel) Domain ¶
func (x *ChooseIdentityPanel) Domain() string
Returns the domain that will be associated with the chosen identity.
Domain calls the underlying Domain.
func (*ChooseIdentityPanel) HelpAnchor ¶
func (x *ChooseIdentityPanel) HelpAnchor() string
Returns the current help anchor string for the sheet or panel.
HelpAnchor calls the underlying HelpAnchor.
func (*ChooseIdentityPanel) ID ¶
func (x *ChooseIdentityPanel) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*ChooseIdentityPanel) Identity ¶
func (x *ChooseIdentityPanel) Identity() unsafe.Pointer
Returns the identity that the user chose in the panel or sheet.
Identity calls the underlying Identity.
func (*ChooseIdentityPanel) InformativeText ¶
func (x *ChooseIdentityPanel) InformativeText() string
Returns the informative text currently displayed in the panel.
InformativeText calls the underlying InformativeText.
func (*ChooseIdentityPanel) Policies ¶
func (x *ChooseIdentityPanel) Policies() *foundation.NSArray[objc.ID]
Returns an array of policies used to evaluate the status of the displayed certificates.
Policies calls the underlying Policies.
func (*ChooseIdentityPanel) RunModalForIdentitiesMessage ¶
func (x *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities *foundation.NSArray[objc.ID], message string) int
Displays a list of identities in a modal panel.
RunModalForIdentitiesMessage calls the underlying RunModalForIdentitiesMessage.
func (*ChooseIdentityPanel) SetAlternateButtonTitle ¶
func (x *ChooseIdentityPanel) SetAlternateButtonTitle(title string)
Customizes the title of the alternate button.
SetAlternateButtonTitle calls the underlying SetAlternateButtonTitle.
func (*ChooseIdentityPanel) SetDefaultButtonTitle ¶
func (x *ChooseIdentityPanel) SetDefaultButtonTitle(title string)
Customizes the title of the default button.
SetDefaultButtonTitle calls the underlying SetDefaultButtonTitle.
func (*ChooseIdentityPanel) SetDomain ¶
func (x *ChooseIdentityPanel) SetDomain(domainString string)
Sets an optional domain in which the identity is to be used.
SetDomain calls the underlying SetDomain.
func (*ChooseIdentityPanel) SetHelpAnchor ¶
func (x *ChooseIdentityPanel) SetHelpAnchor(anchor string)
Sets the help anchor string for the sheet or modal panel.
SetHelpAnchor calls the underlying SetHelpAnchor.
func (*ChooseIdentityPanel) SetInformativeText ¶
func (x *ChooseIdentityPanel) SetInformativeText(informativeText string)
Sets the optional informative text displayed in the panel.
SetInformativeText calls the underlying SetInformativeText.
func (*ChooseIdentityPanel) SetPolicies ¶
func (x *ChooseIdentityPanel) SetPolicies(policies objc.ID)
Specifies one or more policies that apply to the displayed certificates.
SetPolicies calls the underlying SetPolicies.
func (*ChooseIdentityPanel) SetShowsHelp ¶
func (x *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)
Displays a Help button in the sheet or panel.
SetShowsHelp calls the underlying SetShowsHelp.
func (*ChooseIdentityPanel) ShowsHelp ¶
func (x *ChooseIdentityPanel) ShowsHelp() bool
Indicates whether the help button is currently set to be displayed.
ShowsHelp calls the underlying ShowsHelp.
func (*ChooseIdentityPanel) Unwrap ¶
func (x *ChooseIdentityPanel) Unwrap() *raw.SFChooseIdentityPanel
Unwrap returns the underlying raw.SFChooseIdentityPanel.
type ChooseIdentityPanelable ¶
type ChooseIdentityPanelable interface {
Unwrap() *raw.SFChooseIdentityPanel
RunModalForIdentitiesMessage(identities *foundation.NSArray[objc.ID], message string) int
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, identities *foundation.NSArray[objc.ID], message string)
Identity() unsafe.Pointer
SetPolicies(policies objc.ID)
Policies() *foundation.NSArray[objc.ID]
SetDefaultButtonTitle(title string)
SetAlternateButtonTitle(title string)
SetShowsHelp(showsHelp bool)
ShowsHelp() bool
SetHelpAnchor(anchor string)
HelpAnchor() string
SetInformativeText(informativeText string)
InformativeText() string
SetDomain(domainString string)
Domain() string
}
ChooseIdentityPanelable is the interface implemented by ChooseIdentityPanel, for mocking and DI.
type ChooseIdentityTableCellView ¶
type ChooseIdentityTableCellView struct {
// contains filtered or unexported fields
}
ChooseIdentityTableCellView wraps raw.SFChooseIdentityTableCellView with a fluent Go API.
func ChooseIdentityTableCellViewFromID ¶
func ChooseIdentityTableCellViewFromID(id objc.ID) *ChooseIdentityTableCellView
ChooseIdentityTableCellViewFromID adopts an existing object pointer as a ChooseIdentityTableCellView (nil for 0).
func NewChooseIdentityTableCellView ¶
func NewChooseIdentityTableCellView() *ChooseIdentityTableCellView
NewChooseIdentityTableCellView creates a new ChooseIdentityTableCellView.
func (*ChooseIdentityTableCellView) ID ¶
func (x *ChooseIdentityTableCellView) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*ChooseIdentityTableCellView) IssuerTextField ¶
func (x *ChooseIdentityTableCellView) IssuerTextField() *appkit.NSTextField
IssuerTextField calls the underlying IssuerTextField.
func (*ChooseIdentityTableCellView) SetIssuerTextField ¶
func (x *ChooseIdentityTableCellView) SetIssuerTextField(issuerTextField *appkit.NSTextField)
SetIssuerTextField calls the underlying SetIssuerTextField.
func (*ChooseIdentityTableCellView) Unwrap ¶
func (x *ChooseIdentityTableCellView) Unwrap() *raw.SFChooseIdentityTableCellView
Unwrap returns the underlying raw.SFChooseIdentityTableCellView.
func (*ChooseIdentityTableCellView) WithIssuerTextField ¶
func (x *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField *appkit.NSTextField) *ChooseIdentityTableCellView
WithIssuerTextField sets the issuerTextField property and returns the receiver for chaining.
type ChooseIdentityTableCellViewable ¶
type ChooseIdentityTableCellViewable interface {
Unwrap() *raw.SFChooseIdentityTableCellView
WithIssuerTextField(issuerTextField *appkit.NSTextField) *ChooseIdentityTableCellView
IssuerTextField() *appkit.NSTextField
SetIssuerTextField(issuerTextField *appkit.NSTextField)
}
ChooseIdentityTableCellViewable is the interface implemented by ChooseIdentityTableCellView, for mocking and DI.
type KeychainSavePanel ¶
type KeychainSavePanel struct {
// contains filtered or unexported fields
}
A panel or sheet that allows the user to create a keychain.
KeychainSavePanel wraps raw.SFKeychainSavePanel with a fluent Go API.
func KeychainSavePanelFromID ¶
func KeychainSavePanelFromID(id objc.ID) *KeychainSavePanel
KeychainSavePanelFromID adopts an existing object pointer as a KeychainSavePanel (nil for 0).
func NewKeychainSavePanel ¶
func NewKeychainSavePanel() *KeychainSavePanel
NewKeychainSavePanel creates a new KeychainSavePanel.
func SharedKeychainSavePanel ¶
func SharedKeychainSavePanel() *KeychainSavePanel
SharedKeychainSavePanel calls the underlying SFKeychainSavePanelSharedKeychainSavePanel.
func (*KeychainSavePanel) Error ¶
func (x *KeychainSavePanel) Error() unsafe.Pointer
Returns the last error encountered by the keychain save panel.
Error calls the underlying Error.
func (*KeychainSavePanel) ID ¶
func (x *KeychainSavePanel) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*KeychainSavePanel) Keychain ¶
func (x *KeychainSavePanel) Keychain() unsafe.Pointer
Returns the keychain created by the keychain save panel.
Keychain calls the underlying Keychain.
func (*KeychainSavePanel) SetPassword ¶
func (x *KeychainSavePanel) SetPassword(password string)
Specifies the password for the keychain that will be created.
SetPassword calls the underlying SetPassword.
func (*KeychainSavePanel) Unwrap ¶
func (x *KeychainSavePanel) Unwrap() *raw.SFKeychainSavePanel
Unwrap returns the underlying raw.SFKeychainSavePanel.
type KeychainSavePanelable ¶
type KeychainSavePanelable interface {
Unwrap() *raw.SFKeychainSavePanel
SetPassword(password string)
Keychain() unsafe.Pointer
Error() unsafe.Pointer
}
KeychainSavePanelable is the interface implemented by KeychainSavePanel, for mocking and DI.
type KeychainSettingsPanel ¶
type KeychainSettingsPanel struct {
// contains filtered or unexported fields
}
A panel or sheet that allows users to change their keychain settings.
KeychainSettingsPanel wraps raw.SFKeychainSettingsPanel with a fluent Go API.
func KeychainSettingsPanelFromID ¶
func KeychainSettingsPanelFromID(id objc.ID) *KeychainSettingsPanel
KeychainSettingsPanelFromID adopts an existing object pointer as a KeychainSettingsPanel (nil for 0).
func NewKeychainSettingsPanel ¶
func NewKeychainSettingsPanel() *KeychainSettingsPanel
NewKeychainSettingsPanel creates a new KeychainSettingsPanel.
func SharedKeychainSettingsPanel ¶
func SharedKeychainSettingsPanel() *KeychainSettingsPanel
SharedKeychainSettingsPanel calls the underlying SFKeychainSettingsPanelSharedKeychainSettingsPanel.
func (*KeychainSettingsPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain ¶
func (x *KeychainSettingsPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, settings *security.SecKeychainSettings, keychain unsafe.Pointer)
Displays a sheet that allows users to change keychain settings.
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain.
func (*KeychainSettingsPanel) ID ¶
func (x *KeychainSettingsPanel) ID() objc.ID
ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.
func (*KeychainSettingsPanel) RunModalForSettingsKeychain ¶
func (x *KeychainSettingsPanel) RunModalForSettingsKeychain(settings *security.SecKeychainSettings, keychain unsafe.Pointer) int
Displays a panel that allows users to change keychain settings.
RunModalForSettingsKeychain calls the underlying RunModalForSettingsKeychain.
func (*KeychainSettingsPanel) Unwrap ¶
func (x *KeychainSettingsPanel) Unwrap() *raw.SFKeychainSettingsPanel
Unwrap returns the underlying raw.SFKeychainSettingsPanel.
type KeychainSettingsPanelable ¶
type KeychainSettingsPanelable interface {
Unwrap() *raw.SFKeychainSettingsPanel
RunModalForSettingsKeychain(settings *security.SecKeychainSettings, keychain unsafe.Pointer) int
BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, settings *security.SecKeychainSettings, keychain unsafe.Pointer)
}
KeychainSettingsPanelable is the interface implemented by KeychainSettingsPanel, for mocking and DI.
type SFAuthorizationViewState ¶ added in v0.5.0
type SFAuthorizationViewState int64
Defines the current state of the authorization view.
const ( SFAuthorizationStartupState SFAuthorizationViewState = 0 SFAuthorizationViewLockedState SFAuthorizationViewState = 1 SFAuthorizationViewInProgressState SFAuthorizationViewState = 2 SFAuthorizationViewUnlockedState SFAuthorizationViewState = 3 )
func (SFAuthorizationViewState) String ¶ added in v0.5.0
func (e SFAuthorizationViewState) String() string
type SFButtonType ¶ added in v0.5.0
type SFButtonType int64
These constants define the button types used by authorization plug-ins.
const ( SFButtonTypeCancel SFButtonType = 0 SFButtonTypeOK SFButtonType = 1 SFButtonTypeBack SFButtonType = 0 SFButtonTypeLogin SFButtonType = 1 )
func (SFButtonType) String ¶ added in v0.5.0
func (e SFButtonType) String() string
type SFViewType ¶ added in v0.5.0
type SFViewType int64
These constants define the view type requested by the authorization plug-in.
const ( SFViewTypeIdentityAndCredentials SFViewType = 0 SFViewTypeCredentials SFViewType = 1 )
func (SFViewType) String ¶ added in v0.5.0
func (e SFViewType) String() string
Source Files
¶
- SFAuthorizationPluginView_generated.go
- SFAuthorizationView_generated.go
- SFCertificatePanel_generated.go
- SFCertificateTrustPanel_generated.go
- SFCertificateView_generated.go
- SFChooseIdentityPanel_generated.go
- SFChooseIdentityTableCellView_generated.go
- SFKeychainSavePanel_generated.go
- SFKeychainSettingsPanel_generated.go
- doc.go
- securityinterface_classmethods_generated.go
- securityinterface_constants_generated.go
- securityinterface_enums_generated.go
- securityinterface_providers_generated.go