Documentation
¶
Overview ¶
Package securityinterface provides a fluent Go API over the macOS SecurityInterface framework.
Types ¶
Each base type below lists the concrete types you construct and pass where the base is accepted:
- CertificatePanel: CertificateTrustPanel
Index ¶
- func SFAuthorizationPluginViewUserNameKey() obj.Object
- func SFAuthorizationPluginViewUserShortNameKey() obj.Object
- func SFCertificateViewDisclosureStateDidChange() obj.Object
- func SFDisplayViewException() obj.Object
- type AuthorizationPluginView
- func (x *AuthorizationPluginView) ButtonPressed(inButtonType ButtonType)
- func (x *AuthorizationPluginView) Description() string
- func (x *AuthorizationPluginView) DidActivate()
- func (x *AuthorizationPluginView) DidDeactivate()
- func (x *AuthorizationPluginView) DisplayView()
- func (x *AuthorizationPluginView) FirstKeyView() obj.Object
- func (x *AuthorizationPluginView) FirstResponder() obj.Object
- func (x *AuthorizationPluginView) IsEqual(other obj.Object) bool
- func (x *AuthorizationPluginView) IsKind(className string) bool
- func (x *AuthorizationPluginView) LastKeyView() obj.Object
- func (x *AuthorizationPluginView) SetButtonEnabled(inButtonType ButtonType, inEnabled bool)
- func (x *AuthorizationPluginView) SetEnabled(inEnabled bool)
- func (x *AuthorizationPluginView) String() string
- func (x *AuthorizationPluginView) UpdateView()
- func (x *AuthorizationPluginView) ViewForType(inType ViewType) obj.Object
- func (x *AuthorizationPluginView) WillActivateWithUser(inUserInformation obj.Object)
- type AuthorizationPluginViewable
- type AuthorizationView
- func (x *AuthorizationView) Authorization() obj.Object
- func (x *AuthorizationView) AuthorizationState() AuthorizationViewState
- func (x *AuthorizationView) Authorize(inSender obj.Object) bool
- func (x *AuthorizationView) Deauthorize(inSender obj.Object) bool
- func (x *AuthorizationView) Delegate() obj.Object
- func (x *AuthorizationView) Description() string
- func (x *AuthorizationView) IsEnabled() bool
- func (x *AuthorizationView) IsEqual(other obj.Object) bool
- func (x *AuthorizationView) IsKind(className string) bool
- func (x *AuthorizationView) SetAutoupdate(autoupdate bool)
- func (x *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)
- func (x *AuthorizationView) SetDelegate(delegate obj.Object)
- func (x *AuthorizationView) SetEnabled(enabled bool)
- func (x *AuthorizationView) SetString(authorizationString string)
- func (x *AuthorizationView) String() string
- func (x *AuthorizationView) UpdateStatus(inSender obj.Object) bool
- type AuthorizationViewState
- type AuthorizationViewable
- type ButtonType
- type CertificatePanel
- func (x *CertificatePanel) CertificateView() *CertificateView
- func (x *CertificatePanel) Description() string
- func (x *CertificatePanel) HelpAnchor() string
- func (x *CertificatePanel) IsEqual(other obj.Object) bool
- func (x *CertificatePanel) IsKind(className string) bool
- func (x *CertificatePanel) Policies() obj.Object
- func (x *CertificatePanel) RunModalForCertificatesShowGroup(certificates obj.Object, showGroup bool) int
- func (x *CertificatePanel) RunModalForTrustShowGroup(trust obj.Object, 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 obj.Object)
- func (x *CertificatePanel) SetShowsHelp(showsHelp bool)
- func (x *CertificatePanel) ShowsHelp() bool
- func (x *CertificatePanel) String() string
- type CertificatePanelProvider
- type CertificatePanelable
- type CertificateTrustPanel
- type CertificateTrustPanelable
- type CertificateView
- func (x *CertificateView) Certificate() obj.Object
- func (x *CertificateView) Description() string
- func (x *CertificateView) DetailsDisclosed() bool
- func (x *CertificateView) DetailsDisplayed() bool
- func (x *CertificateView) IsEditable() bool
- func (x *CertificateView) IsEqual(other obj.Object) bool
- func (x *CertificateView) IsKind(className string) bool
- func (x *CertificateView) IsTrustDisplayed() bool
- func (x *CertificateView) Policies() obj.Object
- func (x *CertificateView) PoliciesDisclosed() bool
- func (x *CertificateView) SaveTrustSettings()
- func (x *CertificateView) SetCertificate(certificate obj.Object)
- 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 obj.Object)
- func (x *CertificateView) SetPoliciesDisclosed(disclosed bool)
- func (x *CertificateView) String() string
- type CertificateViewable
- type ChooseIdentityPanel
- func (x *ChooseIdentityPanel) Description() string
- func (x *ChooseIdentityPanel) Domain() string
- func (x *ChooseIdentityPanel) HelpAnchor() string
- func (x *ChooseIdentityPanel) Identity() obj.Object
- func (x *ChooseIdentityPanel) InformativeText() string
- func (x *ChooseIdentityPanel) IsEqual(other obj.Object) bool
- func (x *ChooseIdentityPanel) IsKind(className string) bool
- func (x *ChooseIdentityPanel) Policies() obj.Object
- func (x *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities obj.Object, 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 obj.Object)
- func (x *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)
- func (x *ChooseIdentityPanel) ShowsHelp() bool
- func (x *ChooseIdentityPanel) String() string
- type ChooseIdentityPanelable
- type ChooseIdentityTableCellView
- func (x *ChooseIdentityTableCellView) Description() string
- func (x *ChooseIdentityTableCellView) IsEqual(other obj.Object) bool
- func (x *ChooseIdentityTableCellView) IsKind(className string) bool
- func (x *ChooseIdentityTableCellView) IssuerTextField() obj.Object
- func (x *ChooseIdentityTableCellView) SetIssuerTextField(issuerTextField obj.Object)
- func (x *ChooseIdentityTableCellView) String() string
- func (x *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField obj.Object) *ChooseIdentityTableCellView
- type ChooseIdentityTableCellViewable
- type KeychainSavePanel
- func (x *KeychainSavePanel) Description() string
- func (x *KeychainSavePanel) IsEqual(other obj.Object) bool
- func (x *KeychainSavePanel) IsKind(className string) bool
- func (x *KeychainSavePanel) Keychain() obj.Object
- func (x *KeychainSavePanel) SetPassword(password string)
- func (x *KeychainSavePanel) String() string
- type KeychainSavePanelable
- type KeychainSettingsPanel
- type KeychainSettingsPanelable
- type ViewType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SFAuthorizationPluginViewUserNameKey ¶ added in v0.8.0
SFAuthorizationPluginViewUserNameKey returns the string constant SFAuthorizationPluginViewUserNameKey, for use as a dictionary key or argument.
func SFAuthorizationPluginViewUserShortNameKey ¶ added in v0.8.0
SFAuthorizationPluginViewUserShortNameKey returns the string constant SFAuthorizationPluginViewUserShortNameKey, for use as a dictionary key or argument.
func SFCertificateViewDisclosureStateDidChange ¶ added in v0.8.0
SFCertificateViewDisclosureStateDidChange returns the string constant SFCertificateViewDisclosureStateDidChange, for use as a dictionary key or argument.
func SFDisplayViewException ¶ added in v0.8.0
SFDisplayViewException returns the string constant SFDisplayViewException, for use as a dictionary key or argument.
Types ¶
type AuthorizationPluginView ¶
AuthorizationPluginView is an idiomatic wrapper over the Objective-C class SFAuthorizationPluginView.
Allows authorization plug-in developers to create a custom view their plug-in can display.
func AuthorizationPluginViewFromID ¶
func AuthorizationPluginViewFromID(id objc.ID) *AuthorizationPluginView
AuthorizationPluginViewFromID adopts an existing Objective-C object as a AuthorizationPluginView (nil for 0), retaining it and registering a release finalizer.
func NewAuthorizationPluginView ¶ added in v0.10.0
func NewAuthorizationPluginView() *AuthorizationPluginView
NewAuthorizationPluginView creates a new AuthorizationPluginView.
func (*AuthorizationPluginView) ButtonPressed ¶
func (x *AuthorizationPluginView) ButtonPressed(inButtonType ButtonType)
ButtonPressed tells the authorization plug-in that the user pressed a button in the custom view.
func (*AuthorizationPluginView) Description ¶ added in v0.10.0
func (x *AuthorizationPluginView) Description() string
Description returns the object's -description text.
func (*AuthorizationPluginView) DidActivate ¶
func (x *AuthorizationPluginView) DidActivate()
DidActivate tells the authorization plug-in when its user interface has become active.
func (*AuthorizationPluginView) DidDeactivate ¶
func (x *AuthorizationPluginView) DidDeactivate()
DidDeactivate tells the authorization plug-in that its user interface has been deactivated.
func (*AuthorizationPluginView) DisplayView ¶
func (x *AuthorizationPluginView) DisplayView()
DisplayView displays the user interface provided by the authorization plug-in view subclass.
func (*AuthorizationPluginView) FirstKeyView ¶
func (x *AuthorizationPluginView) FirstKeyView() obj.Object
FirstKeyView returns the first view in the keyboard loop of the view.
func (*AuthorizationPluginView) FirstResponder ¶
func (x *AuthorizationPluginView) FirstResponder() obj.Object
FirstResponder returns the view that should get focus for keyboard events.
func (*AuthorizationPluginView) IsEqual ¶ added in v0.10.0
func (x *AuthorizationPluginView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AuthorizationPluginView) IsKind ¶ added in v0.10.0
func (x *AuthorizationPluginView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AuthorizationPluginView) LastKeyView ¶
func (x *AuthorizationPluginView) LastKeyView() obj.Object
LastKeyView returns the last view in the keyboard loop of the view.
func (*AuthorizationPluginView) SetButtonEnabled ¶
func (x *AuthorizationPluginView) SetButtonEnabled(inButtonType ButtonType, inEnabled bool)
SetButtonEnabled enables or disables a button in the authorization plug-in’s user interface.
func (*AuthorizationPluginView) SetEnabled ¶
func (x *AuthorizationPluginView) SetEnabled(inEnabled bool)
SetEnabled enables or disables the controls in the authorization plug-in’s view.
func (*AuthorizationPluginView) String ¶ added in v0.10.0
func (x *AuthorizationPluginView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*AuthorizationPluginView) UpdateView ¶
func (x *AuthorizationPluginView) UpdateView()
UpdateView tells the authorization plug-in to get and display the appropriate view in the authorization plug-in’s user interface.
func (*AuthorizationPluginView) ViewForType ¶
func (x *AuthorizationPluginView) ViewForType(inType ViewType) obj.Object
ViewForType returns the appropriate view object for the specified view type.
func (*AuthorizationPluginView) WillActivateWithUser ¶
func (x *AuthorizationPluginView) WillActivateWithUser(inUserInformation obj.Object)
WillActivateWithUser tells the authorization plug-in that its user interface is about to be made active by the Apple-provided Security Agent.
type AuthorizationPluginViewable ¶
type AuthorizationPluginViewable interface {
obj.Object
ButtonPressed(inButtonType ButtonType)
DidActivate()
WillActivateWithUser(inUserInformation obj.Object)
DidDeactivate()
FirstKeyView() obj.Object
FirstResponder() obj.Object
LastKeyView() obj.Object
SetEnabled(inEnabled bool)
ViewForType(inType ViewType) obj.Object
DisplayView()
SetButtonEnabled(inButtonType ButtonType, inEnabled bool)
UpdateView()
}
AuthorizationPluginViewable is the interface implemented by AuthorizationPluginView, for mocking and DI.
type AuthorizationView ¶
AuthorizationView is an idiomatic wrapper over the Objective-C class SFAuthorizationView.
The class responsible for displaying a lock icon that can be used to indicate that a user interface has restricted access.
func AuthorizationViewFromID ¶
func AuthorizationViewFromID(id objc.ID) *AuthorizationView
AuthorizationViewFromID adopts an existing Objective-C object as a AuthorizationView (nil for 0), retaining it and registering a release finalizer.
func NewAuthorizationView ¶
func NewAuthorizationView() *AuthorizationView
NewAuthorizationView creates a new AuthorizationView.
func (*AuthorizationView) Authorization ¶
func (x *AuthorizationView) Authorization() obj.Object
Authorization returns the authorization object associated with this view.
func (*AuthorizationView) AuthorizationState ¶
func (x *AuthorizationView) AuthorizationState() AuthorizationViewState
AuthorizationState returns the current state of the authorization view.
func (*AuthorizationView) Authorize ¶
func (x *AuthorizationView) Authorize(inSender obj.Object) bool
Authorize attempts to unlock the lock icon in the view.
func (*AuthorizationView) Deauthorize ¶
func (x *AuthorizationView) Deauthorize(inSender obj.Object) bool
Deauthorize sets the authorization state to unauthorized and locks the lock icon in the view.
func (*AuthorizationView) Delegate ¶
func (x *AuthorizationView) Delegate() obj.Object
Delegate returns the delegate for this view.
func (*AuthorizationView) Description ¶ added in v0.10.0
func (x *AuthorizationView) Description() string
Description returns the object's -description text.
func (*AuthorizationView) IsEnabled ¶
func (x *AuthorizationView) IsEnabled() bool
IsEnabled indicates whether the authorization view is enabled (true) or disabled (false).
func (*AuthorizationView) IsEqual ¶ added in v0.10.0
func (x *AuthorizationView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AuthorizationView) IsKind ¶ added in v0.10.0
func (x *AuthorizationView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AuthorizationView) SetAutoupdate ¶
func (x *AuthorizationView) SetAutoupdate(autoupdate bool)
SetAutoupdate sets the authorization view to update itself automatically.
func (*AuthorizationView) SetAutoupdateInterval ¶
func (x *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)
SetAutoupdateInterval sets the authorization view to update itself at a specific interval.
func (*AuthorizationView) SetDelegate ¶
func (x *AuthorizationView) SetDelegate(delegate obj.Object)
SetDelegate sets the delegate for this authorization view.
func (*AuthorizationView) SetEnabled ¶
func (x *AuthorizationView) SetEnabled(enabled bool)
SetEnabled sets the current state of the authorization view.
func (*AuthorizationView) SetString ¶
func (x *AuthorizationView) SetString(authorizationString string)
SetString sets the requested-right string to use with the default authorization rights set.
func (*AuthorizationView) String ¶ added in v0.10.0
func (x *AuthorizationView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*AuthorizationView) UpdateStatus ¶
func (x *AuthorizationView) UpdateStatus(inSender obj.Object) bool
UpdateStatus manually updates the authorization view.
type AuthorizationViewState ¶ added in v0.10.0
type AuthorizationViewState int64
Defines the current state of the authorization view.
const ( AuthorizationStartupState AuthorizationViewState = 0 AuthorizationViewLockedState AuthorizationViewState = 1 AuthorizationViewInProgressState AuthorizationViewState = 2 AuthorizationViewUnlockedState AuthorizationViewState = 3 )
func (AuthorizationViewState) String ¶ added in v0.10.0
func (e AuthorizationViewState) String() string
String returns the AuthorizationViewState constant's name, or its numeric form when the value is not a known constant.
type AuthorizationViewable ¶
type AuthorizationViewable interface {
obj.Object
SetString(authorizationString string)
Authorization() obj.Object
UpdateStatus(inSender obj.Object) bool
SetAutoupdate(autoupdate bool)
SetAutoupdateInterval(autoupdate bool, interval float64)
AuthorizationState() AuthorizationViewState
SetEnabled(enabled bool)
IsEnabled() bool
SetDelegate(delegate obj.Object)
Delegate() obj.Object
Authorize(inSender obj.Object) bool
}
AuthorizationViewable is the interface implemented by AuthorizationView, for mocking and DI.
type ButtonType ¶ added in v0.10.0
type ButtonType int64
These constants define the button types used by authorization plug-ins.
const ( ButtonTypeCancel ButtonType = 0 ButtonTypeOK ButtonType = 1 ButtonTypeBack ButtonType = 0 ButtonTypeLogin ButtonType = 1 )
func (ButtonType) String ¶ added in v0.10.0
func (e ButtonType) String() string
String returns the ButtonType constant's name, or its numeric form when the value is not a known constant.
type CertificatePanel ¶
CertificatePanel is an idiomatic wrapper over the Objective-C class SFCertificatePanel.
CertificatePanel is an abstract base — you do not construct it directly. Construct one of CertificateTrustPanel and pass it where a CertificatePanel is accepted.
A panel or sheet that displays one or more certificates.
func CertificatePanelFromID ¶
func CertificatePanelFromID(id objc.ID) *CertificatePanel
CertificatePanelFromID adopts an existing Objective-C object as a CertificatePanel (nil for 0), retaining it and registering a release finalizer.
func SharedCertificatePanel ¶
func SharedCertificatePanel() *CertificatePanel
SharedCertificatePanel returns a fully initialized, singleton certificate panel object.
func (*CertificatePanel) CertificateView ¶
func (x *CertificatePanel) CertificateView() *CertificateView
CertificateView returns the certificate view for the modal panel.
func (*CertificatePanel) Description ¶ added in v0.10.0
func (x *CertificatePanel) Description() string
Description returns the object's -description text.
func (*CertificatePanel) HelpAnchor ¶
func (x *CertificatePanel) HelpAnchor() string
HelpAnchor returns the current help anchor string for the sheet or panel.
func (*CertificatePanel) IsEqual ¶ added in v0.10.0
func (x *CertificatePanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CertificatePanel) IsKind ¶ added in v0.10.0
func (x *CertificatePanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CertificatePanel) Policies ¶
func (x *CertificatePanel) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificates.
func (*CertificatePanel) RunModalForCertificatesShowGroup ¶
func (x *CertificatePanel) RunModalForCertificatesShowGroup(certificates obj.Object, showGroup bool) int
RunModalForCertificatesShowGroup displays one or more specified certificates in a modal panel.
func (*CertificatePanel) RunModalForTrustShowGroup ¶
func (x *CertificatePanel) RunModalForTrustShowGroup(trust obj.Object, showGroup bool) int
RunModalForTrustShowGroup displays a certificate chain in a modal panel.
func (*CertificatePanel) SetAlternateButtonTitle ¶
func (x *CertificatePanel) SetAlternateButtonTitle(title string)
SetAlternateButtonTitle customizes the title of the alternate button.
func (*CertificatePanel) SetDefaultButtonTitle ¶
func (x *CertificatePanel) SetDefaultButtonTitle(title string)
SetDefaultButtonTitle customizes the title of the default button.
func (*CertificatePanel) SetHelpAnchor ¶
func (x *CertificatePanel) SetHelpAnchor(anchor string)
SetHelpAnchor sets the help anchor string for the sheet or modal panel.
func (*CertificatePanel) SetPolicies ¶
func (x *CertificatePanel) SetPolicies(policies obj.Object)
SetPolicies specifies one or more policies that apply to the displayed certificates.
func (*CertificatePanel) SetShowsHelp ¶
func (x *CertificatePanel) SetShowsHelp(showsHelp bool)
SetShowsHelp displays a Help button in the sheet or panel.
func (*CertificatePanel) ShowsHelp ¶
func (x *CertificatePanel) ShowsHelp() bool
ShowsHelp indicates whether the help button is currently set to be displayed.
func (*CertificatePanel) String ¶ added in v0.10.0
func (x *CertificatePanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type CertificatePanelProvider ¶
type CertificatePanelProvider interface {
objref.Object
// contains filtered or unexported methods
}
CertificatePanelProvider is accepted wherever a SFCertificatePanel (or one of its subclasses) is expected.
type CertificatePanelable ¶
type CertificatePanelable interface {
obj.Object
RunModalForTrustShowGroup(trust obj.Object, showGroup bool) int
RunModalForCertificatesShowGroup(certificates obj.Object, showGroup bool) int
SetPolicies(policies obj.Object)
Policies() obj.Object
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 {
CertificatePanel
}
CertificateTrustPanel is an idiomatic wrapper over the Objective-C class SFCertificateTrustPanel.
It embeds CertificatePanel, promoting that type's methods.
A panel or sheet that lets the user edit the trust settings in any of the certificates in a certificate chain.
func CertificateTrustPanelFromID ¶
func CertificateTrustPanelFromID(id objc.ID) *CertificateTrustPanel
CertificateTrustPanelFromID adopts an existing Objective-C object as a CertificateTrustPanel (nil for 0), retaining it and registering a release finalizer.
func NewCertificateTrustPanel ¶
func NewCertificateTrustPanel() *CertificateTrustPanel
NewCertificateTrustPanel creates a new CertificateTrustPanel.
func SharedCertificateTrustPanel ¶
func SharedCertificateTrustPanel() *CertificateTrustPanel
SharedCertificateTrustPanel returns a fully initialized, singleton certificate trust panel object.
func (*CertificateTrustPanel) InformativeText ¶
func (x *CertificateTrustPanel) InformativeText() string
InformativeText returns the (optional) informative text currently displayed in the panel.
func (*CertificateTrustPanel) RunModalForTrustMessage ¶
func (x *CertificateTrustPanel) RunModalForTrustMessage(trust obj.Object, message string) int
RunModalForTrustMessage displays a modal panel that shows the results of a certificate trust evaluation and that allows the user to edit trust settings.
func (*CertificateTrustPanel) SetInformativeText ¶
func (x *CertificateTrustPanel) SetInformativeText(informativeText string)
SetInformativeText sets the (optional) informative text displayed in the panel.
type CertificateTrustPanelable ¶
type CertificateTrustPanelable interface {
obj.Object
RunModalForTrustMessage(trust obj.Object, message string) int
SetInformativeText(informativeText string)
InformativeText() string
}
CertificateTrustPanelable is the interface implemented by CertificateTrustPanel, for mocking and DI.
type CertificateView ¶
CertificateView is an idiomatic wrapper over the Objective-C class SFCertificateView.
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.
func CertificateViewFromID ¶
func CertificateViewFromID(id objc.ID) *CertificateView
CertificateViewFromID adopts an existing Objective-C object as a CertificateView (nil for 0), retaining it and registering a release finalizer.
func NewCertificateView ¶
func NewCertificateView() *CertificateView
NewCertificateView creates a new CertificateView.
func (*CertificateView) Certificate ¶
func (x *CertificateView) Certificate() obj.Object
Certificate returns the certificate currently displayed in the view.
func (*CertificateView) Description ¶ added in v0.10.0
func (x *CertificateView) Description() string
Description returns the object's -description text.
func (*CertificateView) DetailsDisclosed ¶
func (x *CertificateView) DetailsDisclosed() bool
DetailsDisclosed returns whether the view currently shows the certificate’s details.
func (*CertificateView) DetailsDisplayed ¶
func (x *CertificateView) DetailsDisplayed() bool
DetailsDisplayed indicates if the view currently shows the certificate’s details.
func (*CertificateView) IsEditable ¶
func (x *CertificateView) IsEditable() bool
IsEditable indicates if the view allows the user to edit the certificate’s trust.
func (*CertificateView) IsEqual ¶ added in v0.10.0
func (x *CertificateView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CertificateView) IsKind ¶ added in v0.10.0
func (x *CertificateView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CertificateView) IsTrustDisplayed ¶
func (x *CertificateView) IsTrustDisplayed() bool
IsTrustDisplayed indicates if the view currently shows the certificate’s trust settings.
func (*CertificateView) Policies ¶
func (x *CertificateView) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificate.
func (*CertificateView) PoliciesDisclosed ¶
func (x *CertificateView) PoliciesDisclosed() bool
PoliciesDisclosed returns whether the trust policy subview is disclosed.
func (*CertificateView) SaveTrustSettings ¶
func (x *CertificateView) SaveTrustSettings()
SaveTrustSettings saves the user’s current trust settings for the displayed certificate.
func (*CertificateView) SetCertificate ¶
func (x *CertificateView) SetCertificate(certificate obj.Object)
SetCertificate specifies the certificate that’s displayed in the view.
func (*CertificateView) SetDetailsDisclosed ¶
func (x *CertificateView) SetDetailsDisclosed(disclosed bool)
SetDetailsDisclosed sets whether the certificate details subview is disclosed.
func (*CertificateView) SetDisplayDetails ¶
func (x *CertificateView) SetDisplayDetails(display bool)
SetDisplayDetails specifies whether the user can see the certificate details.
func (*CertificateView) SetDisplayTrust ¶
func (x *CertificateView) SetDisplayTrust(display bool)
SetDisplayTrust specifies whether the user can see the certificate’s trust settings.
func (*CertificateView) SetEditableTrust ¶
func (x *CertificateView) SetEditableTrust(editable bool)
SetEditableTrust specifies whether the user can edit the certificate’s trust settings.
func (*CertificateView) SetPolicies ¶
func (x *CertificateView) SetPolicies(policies obj.Object)
SetPolicies specifies the policies to use when evaluating this certificate’s status.
func (*CertificateView) SetPoliciesDisclosed ¶
func (x *CertificateView) SetPoliciesDisclosed(disclosed bool)
SetPoliciesDisclosed specifies whether the trust policy settings subview is disclosed.
func (*CertificateView) String ¶ added in v0.10.0
func (x *CertificateView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type CertificateViewable ¶
type CertificateViewable interface {
obj.Object
SetCertificate(certificate obj.Object)
Certificate() obj.Object
SetPolicies(policies obj.Object)
Policies() obj.Object
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 ¶
ChooseIdentityPanel is an idiomatic wrapper over the Objective-C class SFChooseIdentityPanel.
A panel or sheet containing a list of identities that a user can choose from.
func ChooseIdentityPanelFromID ¶
func ChooseIdentityPanelFromID(id objc.ID) *ChooseIdentityPanel
ChooseIdentityPanelFromID adopts an existing Objective-C object as a ChooseIdentityPanel (nil for 0), retaining it and registering a release finalizer.
func NewChooseIdentityPanel ¶
func NewChooseIdentityPanel() *ChooseIdentityPanel
NewChooseIdentityPanel creates a new ChooseIdentityPanel.
func SharedChooseIdentityPanel ¶
func SharedChooseIdentityPanel() *ChooseIdentityPanel
SharedChooseIdentityPanel returns a fully initialized, singleton choose identity panel object.
func (*ChooseIdentityPanel) Description ¶ added in v0.10.0
func (x *ChooseIdentityPanel) Description() string
Description returns the object's -description text.
func (*ChooseIdentityPanel) Domain ¶
func (x *ChooseIdentityPanel) Domain() string
Domain returns the domain that will be associated with the chosen identity.
func (*ChooseIdentityPanel) HelpAnchor ¶
func (x *ChooseIdentityPanel) HelpAnchor() string
HelpAnchor returns the current help anchor string for the sheet or panel.
func (*ChooseIdentityPanel) Identity ¶
func (x *ChooseIdentityPanel) Identity() obj.Object
Identity returns the identity that the user chose in the panel or sheet.
func (*ChooseIdentityPanel) InformativeText ¶
func (x *ChooseIdentityPanel) InformativeText() string
InformativeText returns the informative text currently displayed in the panel.
func (*ChooseIdentityPanel) IsEqual ¶ added in v0.10.0
func (x *ChooseIdentityPanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ChooseIdentityPanel) IsKind ¶ added in v0.10.0
func (x *ChooseIdentityPanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ChooseIdentityPanel) Policies ¶
func (x *ChooseIdentityPanel) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificates.
func (*ChooseIdentityPanel) RunModalForIdentitiesMessage ¶
func (x *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities obj.Object, message string) int
RunModalForIdentitiesMessage displays a list of identities in a modal panel.
func (*ChooseIdentityPanel) SetAlternateButtonTitle ¶
func (x *ChooseIdentityPanel) SetAlternateButtonTitle(title string)
SetAlternateButtonTitle customizes the title of the alternate button.
func (*ChooseIdentityPanel) SetDefaultButtonTitle ¶
func (x *ChooseIdentityPanel) SetDefaultButtonTitle(title string)
SetDefaultButtonTitle customizes the title of the default button.
func (*ChooseIdentityPanel) SetDomain ¶
func (x *ChooseIdentityPanel) SetDomain(domainString string)
SetDomain sets an optional domain in which the identity is to be used.
func (*ChooseIdentityPanel) SetHelpAnchor ¶
func (x *ChooseIdentityPanel) SetHelpAnchor(anchor string)
SetHelpAnchor sets the help anchor string for the sheet or modal panel.
func (*ChooseIdentityPanel) SetInformativeText ¶
func (x *ChooseIdentityPanel) SetInformativeText(informativeText string)
SetInformativeText sets the optional informative text displayed in the panel.
func (*ChooseIdentityPanel) SetPolicies ¶
func (x *ChooseIdentityPanel) SetPolicies(policies obj.Object)
SetPolicies specifies one or more policies that apply to the displayed certificates.
func (*ChooseIdentityPanel) SetShowsHelp ¶
func (x *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)
SetShowsHelp displays a Help button in the sheet or panel.
func (*ChooseIdentityPanel) ShowsHelp ¶
func (x *ChooseIdentityPanel) ShowsHelp() bool
ShowsHelp indicates whether the help button is currently set to be displayed.
func (*ChooseIdentityPanel) String ¶ added in v0.10.0
func (x *ChooseIdentityPanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ChooseIdentityPanelable ¶
type ChooseIdentityPanelable interface {
obj.Object
RunModalForIdentitiesMessage(identities obj.Object, message string) int
Identity() obj.Object
SetPolicies(policies obj.Object)
Policies() obj.Object
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 ¶
ChooseIdentityTableCellView is an idiomatic wrapper over the Objective-C class SFChooseIdentityTableCellView.
func ChooseIdentityTableCellViewFromID ¶
func ChooseIdentityTableCellViewFromID(id objc.ID) *ChooseIdentityTableCellView
ChooseIdentityTableCellViewFromID adopts an existing Objective-C object as a ChooseIdentityTableCellView (nil for 0), retaining it and registering a release finalizer.
func NewChooseIdentityTableCellView ¶
func NewChooseIdentityTableCellView() *ChooseIdentityTableCellView
NewChooseIdentityTableCellView creates a new ChooseIdentityTableCellView.
func (*ChooseIdentityTableCellView) Description ¶ added in v0.10.0
func (x *ChooseIdentityTableCellView) Description() string
Description returns the object's -description text.
func (*ChooseIdentityTableCellView) IsEqual ¶ added in v0.10.0
func (x *ChooseIdentityTableCellView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ChooseIdentityTableCellView) IsKind ¶ added in v0.10.0
func (x *ChooseIdentityTableCellView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ChooseIdentityTableCellView) IssuerTextField ¶
func (x *ChooseIdentityTableCellView) IssuerTextField() obj.Object
IssuerTextField wraps the corresponding Objective-C method.
func (*ChooseIdentityTableCellView) SetIssuerTextField ¶
func (x *ChooseIdentityTableCellView) SetIssuerTextField(issuerTextField obj.Object)
SetIssuerTextField wraps the corresponding Objective-C method.
func (*ChooseIdentityTableCellView) String ¶ added in v0.10.0
func (x *ChooseIdentityTableCellView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ChooseIdentityTableCellView) WithIssuerTextField ¶
func (x *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField obj.Object) *ChooseIdentityTableCellView
WithIssuerTextField sets the property and returns the receiver so calls can be chained.
type ChooseIdentityTableCellViewable ¶
type ChooseIdentityTableCellViewable interface {
obj.Object
WithIssuerTextField(issuerTextField obj.Object) *ChooseIdentityTableCellView
IssuerTextField() obj.Object
SetIssuerTextField(issuerTextField obj.Object)
}
ChooseIdentityTableCellViewable is the interface implemented by ChooseIdentityTableCellView, for mocking and DI.
type KeychainSavePanel ¶
KeychainSavePanel is an idiomatic wrapper over the Objective-C class SFKeychainSavePanel.
A panel or sheet that allows the user to create a keychain.
func KeychainSavePanelFromID ¶
func KeychainSavePanelFromID(id objc.ID) *KeychainSavePanel
KeychainSavePanelFromID adopts an existing Objective-C object as a KeychainSavePanel (nil for 0), retaining it and registering a release finalizer.
func NewKeychainSavePanel ¶
func NewKeychainSavePanel() *KeychainSavePanel
NewKeychainSavePanel creates a new KeychainSavePanel.
func SharedKeychainSavePanel ¶
func SharedKeychainSavePanel() *KeychainSavePanel
SharedKeychainSavePanel returns a shared keychain save panel object.
func (*KeychainSavePanel) Description ¶ added in v0.10.0
func (x *KeychainSavePanel) Description() string
Description returns the object's -description text.
func (*KeychainSavePanel) IsEqual ¶ added in v0.10.0
func (x *KeychainSavePanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*KeychainSavePanel) IsKind ¶ added in v0.10.0
func (x *KeychainSavePanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*KeychainSavePanel) Keychain ¶
func (x *KeychainSavePanel) Keychain() obj.Object
Keychain returns the keychain created by the keychain save panel.
func (*KeychainSavePanel) SetPassword ¶
func (x *KeychainSavePanel) SetPassword(password string)
SetPassword specifies the password for the keychain that will be created.
func (*KeychainSavePanel) String ¶ added in v0.10.0
func (x *KeychainSavePanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type KeychainSavePanelable ¶
type KeychainSavePanelable interface {
obj.Object
SetPassword(password string)
Keychain() obj.Object
}
KeychainSavePanelable is the interface implemented by KeychainSavePanel, for mocking and DI.
type KeychainSettingsPanel ¶
KeychainSettingsPanel is an idiomatic wrapper over the Objective-C class SFKeychainSettingsPanel.
A panel or sheet that allows users to change their keychain settings.
func KeychainSettingsPanelFromID ¶
func KeychainSettingsPanelFromID(id objc.ID) *KeychainSettingsPanel
KeychainSettingsPanelFromID adopts an existing Objective-C object as a KeychainSettingsPanel (nil for 0), retaining it and registering a release finalizer.
func NewKeychainSettingsPanel ¶
func NewKeychainSettingsPanel() *KeychainSettingsPanel
NewKeychainSettingsPanel creates a new KeychainSettingsPanel.
func SharedKeychainSettingsPanel ¶
func SharedKeychainSettingsPanel() *KeychainSettingsPanel
SharedKeychainSettingsPanel returns a shared keychain settings panel object.
func (*KeychainSettingsPanel) Description ¶ added in v0.10.0
func (x *KeychainSettingsPanel) Description() string
Description returns the object's -description text.
func (*KeychainSettingsPanel) IsEqual ¶ added in v0.10.0
func (x *KeychainSettingsPanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*KeychainSettingsPanel) IsKind ¶ added in v0.10.0
func (x *KeychainSettingsPanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*KeychainSettingsPanel) String ¶ added in v0.10.0
func (x *KeychainSettingsPanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type KeychainSettingsPanelable ¶
KeychainSettingsPanelable is the interface implemented by KeychainSettingsPanel, for mocking and DI.
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
- securityinterface_runtime_generated.go