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 (apv *AuthorizationPluginView) ButtonPressed(inButtonType ButtonType)
- func (apv *AuthorizationPluginView) Description() string
- func (apv *AuthorizationPluginView) DidActivate()
- func (apv *AuthorizationPluginView) DidDeactivate()
- func (apv *AuthorizationPluginView) DisplayView()
- func (apv *AuthorizationPluginView) FirstKeyView() obj.Object
- func (apv *AuthorizationPluginView) FirstResponder() obj.Object
- func (apv *AuthorizationPluginView) IsEqual(other obj.Object) bool
- func (apv *AuthorizationPluginView) IsKind(className string) bool
- func (apv *AuthorizationPluginView) LastKeyView() obj.Object
- func (apv *AuthorizationPluginView) SetButtonEnabled(inButtonType ButtonType, inEnabled bool)
- func (apv *AuthorizationPluginView) SetEnabled(inEnabled bool)
- func (apv *AuthorizationPluginView) String() string
- func (apv *AuthorizationPluginView) UpdateView()
- func (apv *AuthorizationPluginView) ViewForType(inType ViewType) obj.Object
- func (apv *AuthorizationPluginView) WillActivateWithUser(inUserInformation obj.Object)
- type AuthorizationView
- func (av *AuthorizationView) Authorization() obj.Object
- func (av *AuthorizationView) AuthorizationState() AuthorizationViewState
- func (av *AuthorizationView) Authorize(inSender obj.Object) bool
- func (av *AuthorizationView) Deauthorize(inSender obj.Object) bool
- func (av *AuthorizationView) Delegate() obj.Object
- func (av *AuthorizationView) Description() string
- func (av *AuthorizationView) IsEnabled() bool
- func (av *AuthorizationView) IsEqual(other obj.Object) bool
- func (av *AuthorizationView) IsKind(className string) bool
- func (av *AuthorizationView) SetAutoupdate(autoupdate bool)
- func (av *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)
- func (av *AuthorizationView) SetDelegate(delegate obj.Object)
- func (av *AuthorizationView) SetEnabled(enabled bool)
- func (av *AuthorizationView) SetString(authorizationString string)
- func (av *AuthorizationView) String() string
- func (av *AuthorizationView) UpdateStatus(inSender obj.Object) bool
- type AuthorizationViewState
- type ButtonType
- type CertificatePanel
- func (cp *CertificatePanel) CertificateView() *CertificateView
- func (cp *CertificatePanel) Description() string
- func (cp *CertificatePanel) HelpAnchor() string
- func (cp *CertificatePanel) IsEqual(other obj.Object) bool
- func (cp *CertificatePanel) IsKind(className string) bool
- func (cp *CertificatePanel) Policies() obj.Object
- func (cp *CertificatePanel) RunModalForCertificatesShowGroup(certificates obj.Object, showGroup bool) int
- func (cp *CertificatePanel) RunModalForTrustShowGroup(trust obj.Object, showGroup bool) int
- func (cp *CertificatePanel) SetAlternateButtonTitle(title string)
- func (cp *CertificatePanel) SetDefaultButtonTitle(title string)
- func (cp *CertificatePanel) SetHelpAnchor(anchor string)
- func (cp *CertificatePanel) SetPolicies(policies obj.Object)
- func (cp *CertificatePanel) SetShowsHelp(showsHelp bool)
- func (cp *CertificatePanel) ShowsHelp() bool
- func (cp *CertificatePanel) String() string
- type CertificatePanelProvider
- type CertificateTrustPanel
- type CertificateView
- func (cv *CertificateView) Certificate() obj.Object
- func (cv *CertificateView) Description() string
- func (cv *CertificateView) DetailsDisclosed() bool
- func (cv *CertificateView) DetailsDisplayed() bool
- func (cv *CertificateView) IsEditable() bool
- func (cv *CertificateView) IsEqual(other obj.Object) bool
- func (cv *CertificateView) IsKind(className string) bool
- func (cv *CertificateView) IsTrustDisplayed() bool
- func (cv *CertificateView) Policies() obj.Object
- func (cv *CertificateView) PoliciesDisclosed() bool
- func (cv *CertificateView) SaveTrustSettings()
- func (cv *CertificateView) SetCertificate(certificate obj.Object)
- func (cv *CertificateView) SetDetailsDisclosed(disclosed bool)
- func (cv *CertificateView) SetDisplayDetails(display bool)
- func (cv *CertificateView) SetDisplayTrust(display bool)
- func (cv *CertificateView) SetEditableTrust(editable bool)
- func (cv *CertificateView) SetPolicies(policies obj.Object)
- func (cv *CertificateView) SetPoliciesDisclosed(disclosed bool)
- func (cv *CertificateView) String() string
- type ChooseIdentityPanel
- func (cip *ChooseIdentityPanel) Description() string
- func (cip *ChooseIdentityPanel) Domain() string
- func (cip *ChooseIdentityPanel) HelpAnchor() string
- func (cip *ChooseIdentityPanel) Identity() obj.Object
- func (cip *ChooseIdentityPanel) InformativeText() string
- func (cip *ChooseIdentityPanel) IsEqual(other obj.Object) bool
- func (cip *ChooseIdentityPanel) IsKind(className string) bool
- func (cip *ChooseIdentityPanel) Policies() obj.Object
- func (cip *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities obj.Object, message string) int
- func (cip *ChooseIdentityPanel) SetAlternateButtonTitle(title string)
- func (cip *ChooseIdentityPanel) SetDefaultButtonTitle(title string)
- func (cip *ChooseIdentityPanel) SetDomain(domainString string)
- func (cip *ChooseIdentityPanel) SetHelpAnchor(anchor string)
- func (cip *ChooseIdentityPanel) SetInformativeText(informativeText string)
- func (cip *ChooseIdentityPanel) SetPolicies(policies obj.Object)
- func (cip *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)
- func (cip *ChooseIdentityPanel) ShowsHelp() bool
- func (cip *ChooseIdentityPanel) String() string
- type ChooseIdentityTableCellView
- func (citcv *ChooseIdentityTableCellView) Description() string
- func (citcv *ChooseIdentityTableCellView) IsEqual(other obj.Object) bool
- func (citcv *ChooseIdentityTableCellView) IsKind(className string) bool
- func (citcv *ChooseIdentityTableCellView) IssuerTextField() obj.Object
- func (citcv *ChooseIdentityTableCellView) String() string
- func (citcv *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField obj.Object) *ChooseIdentityTableCellView
- type KeychainSavePanel
- func (ksp *KeychainSavePanel) Description() string
- func (ksp *KeychainSavePanel) IsEqual(other obj.Object) bool
- func (ksp *KeychainSavePanel) IsKind(className string) bool
- func (ksp *KeychainSavePanel) Keychain() obj.Object
- func (ksp *KeychainSavePanel) SetPassword(password string)
- func (ksp *KeychainSavePanel) String() string
- type KeychainSettingsPanel
- 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 (apv *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 (apv *AuthorizationPluginView) Description() string
Description returns the object's -description text.
func (*AuthorizationPluginView) DidActivate ¶
func (apv *AuthorizationPluginView) DidActivate()
DidActivate tells the authorization plug-in when its user interface has become active.
func (*AuthorizationPluginView) DidDeactivate ¶
func (apv *AuthorizationPluginView) DidDeactivate()
DidDeactivate tells the authorization plug-in that its user interface has been deactivated.
func (*AuthorizationPluginView) DisplayView ¶
func (apv *AuthorizationPluginView) DisplayView()
DisplayView displays the user interface provided by the authorization plug-in view subclass.
func (*AuthorizationPluginView) FirstKeyView ¶
func (apv *AuthorizationPluginView) FirstKeyView() obj.Object
FirstKeyView returns the first view in the keyboard loop of the view.
func (*AuthorizationPluginView) FirstResponder ¶
func (apv *AuthorizationPluginView) FirstResponder() obj.Object
FirstResponder returns the view that should get focus for keyboard events.
func (*AuthorizationPluginView) IsEqual ¶ added in v0.10.0
func (apv *AuthorizationPluginView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AuthorizationPluginView) IsKind ¶ added in v0.10.0
func (apv *AuthorizationPluginView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AuthorizationPluginView) LastKeyView ¶
func (apv *AuthorizationPluginView) LastKeyView() obj.Object
LastKeyView returns the last view in the keyboard loop of the view.
func (*AuthorizationPluginView) SetButtonEnabled ¶
func (apv *AuthorizationPluginView) SetButtonEnabled(inButtonType ButtonType, inEnabled bool)
SetButtonEnabled enables or disables a button in the authorization plug-in’s user interface.
func (*AuthorizationPluginView) SetEnabled ¶
func (apv *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 (apv *AuthorizationPluginView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*AuthorizationPluginView) UpdateView ¶
func (apv *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 (apv *AuthorizationPluginView) ViewForType(inType ViewType) obj.Object
ViewForType returns the appropriate view object for the specified view type.
func (*AuthorizationPluginView) WillActivateWithUser ¶
func (apv *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 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 (av *AuthorizationView) Authorization() obj.Object
Authorization returns the authorization object associated with this view.
func (*AuthorizationView) AuthorizationState ¶
func (av *AuthorizationView) AuthorizationState() AuthorizationViewState
AuthorizationState returns the current state of the authorization view.
func (*AuthorizationView) Authorize ¶
func (av *AuthorizationView) Authorize(inSender obj.Object) bool
Authorize attempts to unlock the lock icon in the view.
func (*AuthorizationView) Deauthorize ¶
func (av *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 (av *AuthorizationView) Delegate() obj.Object
Delegate returns the delegate for this view.
func (*AuthorizationView) Description ¶ added in v0.10.0
func (av *AuthorizationView) Description() string
Description returns the object's -description text.
func (*AuthorizationView) IsEnabled ¶
func (av *AuthorizationView) IsEnabled() bool
IsEnabled reports whether the authorization view is enabled (true) or disabled (false).
func (*AuthorizationView) IsEqual ¶ added in v0.10.0
func (av *AuthorizationView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AuthorizationView) IsKind ¶ added in v0.10.0
func (av *AuthorizationView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AuthorizationView) SetAutoupdate ¶
func (av *AuthorizationView) SetAutoupdate(autoupdate bool)
SetAutoupdate sets the authorization view to update itself automatically.
func (*AuthorizationView) SetAutoupdateInterval ¶
func (av *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)
SetAutoupdateInterval sets the authorization view to update itself at a specific interval.
func (*AuthorizationView) SetDelegate ¶
func (av *AuthorizationView) SetDelegate(delegate obj.Object)
SetDelegate sets the delegate for this authorization view.
func (*AuthorizationView) SetEnabled ¶
func (av *AuthorizationView) SetEnabled(enabled bool)
SetEnabled sets the current state of the authorization view.
func (*AuthorizationView) SetString ¶
func (av *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 (av *AuthorizationView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*AuthorizationView) UpdateStatus ¶
func (av *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 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 (cp *CertificatePanel) CertificateView() *CertificateView
CertificateView returns the certificate view for the modal panel.
func (*CertificatePanel) Description ¶ added in v0.10.0
func (cp *CertificatePanel) Description() string
Description returns the object's -description text.
func (*CertificatePanel) HelpAnchor ¶
func (cp *CertificatePanel) HelpAnchor() string
HelpAnchor returns the current help anchor string for the sheet or panel.
func (*CertificatePanel) IsEqual ¶ added in v0.10.0
func (cp *CertificatePanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CertificatePanel) IsKind ¶ added in v0.10.0
func (cp *CertificatePanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CertificatePanel) Policies ¶
func (cp *CertificatePanel) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificates.
func (*CertificatePanel) RunModalForCertificatesShowGroup ¶
func (cp *CertificatePanel) RunModalForCertificatesShowGroup(certificates obj.Object, showGroup bool) int
RunModalForCertificatesShowGroup displays one or more specified certificates in a modal panel.
func (*CertificatePanel) RunModalForTrustShowGroup ¶
func (cp *CertificatePanel) RunModalForTrustShowGroup(trust obj.Object, showGroup bool) int
RunModalForTrustShowGroup displays a certificate chain in a modal panel.
func (*CertificatePanel) SetAlternateButtonTitle ¶
func (cp *CertificatePanel) SetAlternateButtonTitle(title string)
SetAlternateButtonTitle customizes the title of the alternate button.
func (*CertificatePanel) SetDefaultButtonTitle ¶
func (cp *CertificatePanel) SetDefaultButtonTitle(title string)
SetDefaultButtonTitle customizes the title of the default button.
func (*CertificatePanel) SetHelpAnchor ¶
func (cp *CertificatePanel) SetHelpAnchor(anchor string)
SetHelpAnchor sets the help anchor string for the sheet or modal panel.
func (*CertificatePanel) SetPolicies ¶
func (cp *CertificatePanel) SetPolicies(policies obj.Object)
SetPolicies specifies one or more policies that apply to the displayed certificates.
func (*CertificatePanel) SetShowsHelp ¶
func (cp *CertificatePanel) SetShowsHelp(showsHelp bool)
SetShowsHelp displays a Help button in the sheet or panel.
func (*CertificatePanel) ShowsHelp ¶
func (cp *CertificatePanel) ShowsHelp() bool
ShowsHelp reports whether the help button is currently set to be displayed.
func (*CertificatePanel) String ¶ added in v0.10.0
func (cp *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 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 (ctp *CertificateTrustPanel) InformativeText() string
InformativeText returns the (optional) informative text currently displayed in the panel.
func (*CertificateTrustPanel) RunModalForTrustMessage ¶
func (ctp *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 (ctp *CertificateTrustPanel) SetInformativeText(informativeText string)
SetInformativeText sets the (optional) informative text displayed in the panel.
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 (cv *CertificateView) Certificate() obj.Object
Certificate returns the certificate currently displayed in the view.
func (*CertificateView) Description ¶ added in v0.10.0
func (cv *CertificateView) Description() string
Description returns the object's -description text.
func (*CertificateView) DetailsDisclosed ¶
func (cv *CertificateView) DetailsDisclosed() bool
DetailsDisclosed reports whether the view currently shows the certificate’s details.
func (*CertificateView) DetailsDisplayed ¶
func (cv *CertificateView) DetailsDisplayed() bool
DetailsDisplayed reports whether indicates if the view currently shows the certificate’s details.
func (*CertificateView) IsEditable ¶
func (cv *CertificateView) IsEditable() bool
IsEditable reports whether indicates if the view allows the user to edit the certificate’s trust.
func (*CertificateView) IsEqual ¶ added in v0.10.0
func (cv *CertificateView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CertificateView) IsKind ¶ added in v0.10.0
func (cv *CertificateView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CertificateView) IsTrustDisplayed ¶
func (cv *CertificateView) IsTrustDisplayed() bool
IsTrustDisplayed reports whether indicates if the view currently shows the certificate’s trust settings.
func (*CertificateView) Policies ¶
func (cv *CertificateView) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificate.
func (*CertificateView) PoliciesDisclosed ¶
func (cv *CertificateView) PoliciesDisclosed() bool
PoliciesDisclosed reports whether the trust policy subview is disclosed.
func (*CertificateView) SaveTrustSettings ¶
func (cv *CertificateView) SaveTrustSettings()
SaveTrustSettings saves the user’s current trust settings for the displayed certificate.
func (*CertificateView) SetCertificate ¶
func (cv *CertificateView) SetCertificate(certificate obj.Object)
SetCertificate specifies the certificate that’s displayed in the view.
func (*CertificateView) SetDetailsDisclosed ¶
func (cv *CertificateView) SetDetailsDisclosed(disclosed bool)
SetDetailsDisclosed sets whether the certificate details subview is disclosed.
func (*CertificateView) SetDisplayDetails ¶
func (cv *CertificateView) SetDisplayDetails(display bool)
SetDisplayDetails specifies whether the user can see the certificate details.
func (*CertificateView) SetDisplayTrust ¶
func (cv *CertificateView) SetDisplayTrust(display bool)
SetDisplayTrust specifies whether the user can see the certificate’s trust settings.
func (*CertificateView) SetEditableTrust ¶
func (cv *CertificateView) SetEditableTrust(editable bool)
SetEditableTrust specifies whether the user can edit the certificate’s trust settings.
func (*CertificateView) SetPolicies ¶
func (cv *CertificateView) SetPolicies(policies obj.Object)
SetPolicies specifies the policies to use when evaluating this certificate’s status.
func (*CertificateView) SetPoliciesDisclosed ¶
func (cv *CertificateView) SetPoliciesDisclosed(disclosed bool)
SetPoliciesDisclosed specifies whether the trust policy settings subview is disclosed.
func (*CertificateView) String ¶ added in v0.10.0
func (cv *CertificateView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
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 (cip *ChooseIdentityPanel) Description() string
Description returns the object's -description text.
func (*ChooseIdentityPanel) Domain ¶
func (cip *ChooseIdentityPanel) Domain() string
Domain returns the domain that will be associated with the chosen identity.
func (*ChooseIdentityPanel) HelpAnchor ¶
func (cip *ChooseIdentityPanel) HelpAnchor() string
HelpAnchor returns the current help anchor string for the sheet or panel.
func (*ChooseIdentityPanel) Identity ¶
func (cip *ChooseIdentityPanel) Identity() obj.Object
Identity returns the identity that the user chose in the panel or sheet.
func (*ChooseIdentityPanel) InformativeText ¶
func (cip *ChooseIdentityPanel) InformativeText() string
InformativeText returns the informative text currently displayed in the panel.
func (*ChooseIdentityPanel) IsEqual ¶ added in v0.10.0
func (cip *ChooseIdentityPanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ChooseIdentityPanel) IsKind ¶ added in v0.10.0
func (cip *ChooseIdentityPanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ChooseIdentityPanel) Policies ¶
func (cip *ChooseIdentityPanel) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificates.
func (*ChooseIdentityPanel) RunModalForIdentitiesMessage ¶
func (cip *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities obj.Object, message string) int
RunModalForIdentitiesMessage displays a list of identities in a modal panel.
func (*ChooseIdentityPanel) SetAlternateButtonTitle ¶
func (cip *ChooseIdentityPanel) SetAlternateButtonTitle(title string)
SetAlternateButtonTitle customizes the title of the alternate button.
func (*ChooseIdentityPanel) SetDefaultButtonTitle ¶
func (cip *ChooseIdentityPanel) SetDefaultButtonTitle(title string)
SetDefaultButtonTitle customizes the title of the default button.
func (*ChooseIdentityPanel) SetDomain ¶
func (cip *ChooseIdentityPanel) SetDomain(domainString string)
SetDomain sets an optional domain in which the identity is to be used.
func (*ChooseIdentityPanel) SetHelpAnchor ¶
func (cip *ChooseIdentityPanel) SetHelpAnchor(anchor string)
SetHelpAnchor sets the help anchor string for the sheet or modal panel.
func (*ChooseIdentityPanel) SetInformativeText ¶
func (cip *ChooseIdentityPanel) SetInformativeText(informativeText string)
SetInformativeText sets the optional informative text displayed in the panel.
func (*ChooseIdentityPanel) SetPolicies ¶
func (cip *ChooseIdentityPanel) SetPolicies(policies obj.Object)
SetPolicies specifies one or more policies that apply to the displayed certificates.
func (*ChooseIdentityPanel) SetShowsHelp ¶
func (cip *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)
SetShowsHelp displays a Help button in the sheet or panel.
func (*ChooseIdentityPanel) ShowsHelp ¶
func (cip *ChooseIdentityPanel) ShowsHelp() bool
ShowsHelp reports whether the help button is currently set to be displayed.
func (*ChooseIdentityPanel) String ¶ added in v0.10.0
func (cip *ChooseIdentityPanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
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 (citcv *ChooseIdentityTableCellView) Description() string
Description returns the object's -description text.
func (*ChooseIdentityTableCellView) IsEqual ¶ added in v0.10.0
func (citcv *ChooseIdentityTableCellView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ChooseIdentityTableCellView) IsKind ¶ added in v0.10.0
func (citcv *ChooseIdentityTableCellView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ChooseIdentityTableCellView) IssuerTextField ¶
func (citcv *ChooseIdentityTableCellView) IssuerTextField() obj.Object
IssuerTextField wraps the corresponding Objective-C method.
func (*ChooseIdentityTableCellView) String ¶ added in v0.10.0
func (citcv *ChooseIdentityTableCellView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ChooseIdentityTableCellView) WithIssuerTextField ¶
func (citcv *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField obj.Object) *ChooseIdentityTableCellView
WithIssuerTextField sets the property and returns the receiver so calls can be chained.
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 (ksp *KeychainSavePanel) Description() string
Description returns the object's -description text.
func (*KeychainSavePanel) IsEqual ¶ added in v0.10.0
func (ksp *KeychainSavePanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*KeychainSavePanel) IsKind ¶ added in v0.10.0
func (ksp *KeychainSavePanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*KeychainSavePanel) Keychain ¶
func (ksp *KeychainSavePanel) Keychain() obj.Object
Keychain returns the keychain created by the keychain save panel.
func (*KeychainSavePanel) SetPassword ¶
func (ksp *KeychainSavePanel) SetPassword(password string)
SetPassword specifies the password for the keychain that will be created.
func (*KeychainSavePanel) String ¶ added in v0.10.0
func (ksp *KeychainSavePanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
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 (ksp *KeychainSettingsPanel) Description() string
Description returns the object's -description text.
func (*KeychainSettingsPanel) IsEqual ¶ added in v0.10.0
func (ksp *KeychainSettingsPanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*KeychainSettingsPanel) IsKind ¶ added in v0.10.0
func (ksp *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 (ksp *KeychainSettingsPanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
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