class Nexpose::SharedCredentialSummary
Attributes
all_sites[RW]
Boolean to indicate whether this credential applies to all sites.
domain[RW]
Domain or realm.
id[RW]
Unique ID assigned to this credential by Nexpose
.
last_modified[RW]
When this credential was last modified.
name[RW]
Name to identify this credential.
permission_elevation_user[RW]
User
name to use when elevating permissions (e.g., sudo).
permission_elevation_user=[RW]
User
name to use when elevating permissions (e.g., sudo).
privilege_username[RW]
User
name to use when elevating permissions (e.g., sudo).
service[RW]
The credential service/type. See Nexpose::Credential::Service
.
type[RW]
The credential service/type. See Nexpose::Credential::Service
.
type=[RW]
The credential service/type. See Nexpose::Credential::Service
.
user_name[RW]
User
name.
user_name=[RW]
User
name.
username[RW]
User
name.
Public Class Methods
from_json(json)
click to toggle source
# File lib/nexpose/shared_credential.rb, line 49 def self.from_json(json) cred = new cred.id = json['credentialID']['ID'] cred.name = json['name'] cred.type = json['service'] cred.domain = json['domain'] cred.username = json['username'] cred.privilege_username = json['privilegeElevationUsername'] cred.all_sites = json['scope'] == 'ALL_SITES_ENABLED_DEFAULT' cred.last_modified = Time.at(json['lastModified']['time'] / 1000) cred end
Public Instance Methods
delete(nsc)
click to toggle source
Delete this credential from the security console.
@param [Connection] nsc An active connection to the security console.
# File lib/nexpose/shared_credential.rb, line 66 def delete(nsc) nsc.delete_shared_credential(@id) end