GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  UBIC::CREDENTIALS (3)

.ds Aq ’

NAME

Ubic::Credentials - base class for OS-specific credential methods

CONTENTS

VERSION

version 1.58

SYNOPSIS



    $creds = Ubic::Credentials->new(user => "mmcleric", group => ["ppb"]);
    $creds = Ubic::Credentials->new(); # current credentials
    $creds = Ubic::Credentials->new(service => $service); # credentials from the given service

    $creds->set_effective; # change effective credentials only, enables tainted mode
    $creds->reset_effective; # back to normality

    $creds->eq(Ubic::Credentials->new); # check if set() call is required to apply the credentials
    $creds->set; # apply all credentials; there is no way back



METHODS

<B>B>new()<B>B>
<B>new(service => B>$service<B>)B>
<B>new(user => B>$user<B>, group => B>$group<B>)B> Constructor.

It constructs credentials with current user and group if no parameters are specified, takes user and group from given service if service parameter is specified or uses any user and group which you pass directly to it.

<B>B>set_effective()<B>B> Set credentials user and group as effective user and group.
<B>B>reset_effective()<B>B> Restore effective user and group to their original values.
<B>eq($other_creds)B> Compare current creds with other creds object.

Returns true value if credentials are equivalent.

<B>B>set()<B>B> Set credentials as effective and real group and user permanently.
<B>B>as_string()<B>B> Returns human-readable string representation.

AUTHOR

Vyacheslav Matyukhin <mmcleric@yandex-team.ru>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Yandex LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 UBIC::CREDENTIALS (3) 2015-01-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.