PHP 인터페이스 Imbo\Auth\AccessControl\Adapter\MutableAdapterInterface

저자: Espen Hovlandsdal ([email protected])
상속: extends Imbo\Auth\AccessControl\Adapter\AdapterInterface
파일 보기 프로젝트 열기: imbo/imbo

공개 메소드들

메소드 설명
addAccessRule ( string $publicKey, array $accessRule ) : string Add a new access rule to the given public key
addKeyPair ( string $publicKey, string $privateKey ) : boolean Add a new public/private key pair
addResourceGroup ( string $groupName, array $resources = [] ) : boolean Add a new group containing the given resources
deleteAccessRule ( string $publicKey, string $accessId ) : boolean Delete an access rule
deletePublicKey ( string $publicKey ) : boolean Delete a public key
deleteResourceGroup ( string $groupName ) : boolean Delete a resource group
updatePrivateKey ( string $publicKey, string $privateKey ) : boolean Update the private key for a public key
updateResourceGroup ( string $groupName, array $resources ) Update resources for an existing resource group

메소드 상세

addAccessRule() 공개 메소드

Add a new access rule to the given public key
public addAccessRule ( string $publicKey, array $accessRule ) : string
$publicKey string Public key to add access rule to
$accessRule array Access rule definition
리턴 string Returns a generated access ID

addKeyPair() 공개 메소드

Add a new public/private key pair
public addKeyPair ( string $publicKey, string $privateKey ) : boolean
$publicKey string Public key to add
$privateKey string Corresponding private key
리턴 boolean

addResourceGroup() 공개 메소드

Add a new group containing the given resources
public addResourceGroup ( string $groupName, array $resources = [] ) : boolean
$groupName string Group name
$resources array Array of resources (eg. 'image.get', 'user.head' etc)
리턴 boolean

deleteAccessRule() 공개 메소드

Delete an access rule
public deleteAccessRule ( string $publicKey, string $accessId ) : boolean
$publicKey string Public key the access rule belongs to
$accessId string Access ID of the rule
리턴 boolean

deletePublicKey() 공개 메소드

Delete a public key
public deletePublicKey ( string $publicKey ) : boolean
$publicKey string Public key to delete
리턴 boolean

deleteResourceGroup() 공개 메소드

Delete a resource group
public deleteResourceGroup ( string $groupName ) : boolean
$groupName string Group name of the group to delete
리턴 boolean

updatePrivateKey() 공개 메소드

Update the private key for a public key
public updatePrivateKey ( string $publicKey, string $privateKey ) : boolean
$publicKey string Public key to update
$privateKey string Private key to set
리턴 boolean

updateResourceGroup() 공개 메소드

Update resources for an existing resource group
public updateResourceGroup ( string $groupName, array $resources )
$groupName string Group to add resources to
$resources array Array of resources (eg. 'image.get', 'user.head' etc)