Pike v8.0 release 1738

Class Pike.Security.Creds

Description

The credentials object.


Method create

Pike.Security.Creds Pike.Security.Creds(User user, int allow_bits, int data_bits)

Description

Initialize a new credentials object.

Parameter allow_bits

Any of the flags BIT_SECURITY and BIT_CONDITIONAL_IO or:ed together.

Parameter data_bits

Any of the flags BIT_INDEX, BIT_SET_INDEX, BIT_CALL, BIT_NOT_SETUID and BIT_DESTRUCT or:ed together.

Throws

Throws an exception if the current creds doesn't have the allow bit BIT_SECURITY set.