Class: Krb5::Principal

Inherits:
Object
  • Object
show all
Defined in:
ext/krb5_auth/principal.c

Instance Method Summary (collapse)

Constructor Details

- (Object) Krb5Auth::Krb5::Principal.new(name)

Creates and returns a new Krb5::Principal object. If a block is provided then it yields itself.

Example:

principal1 = Krb5Auth::Krb5::Principal.new('Jon')

principal2 = Krb5Auth::Krb5::Principal.new('Jon') do |pr|
  pr.expire_time = Time.now + 20000
end


# File 'ext/krb5_auth/principal.c'

/*
 * call-seq:
 *   Krb5Auth::Krb5::Principal.new(name)
 *
 * Creates and returns a new Krb5::Principal object. If a block is provided
 * then it yields itself.
 *
 * Example:
 *
 *   principal1 = Krb5Auth::Krb5::Principal.new('Jon')
 *
 *   principal2 = Krb5Auth::Krb5::Principal.new('Jon') do |pr|
 *     pr.expire_time = Time.now + 20000
 *   end
 */
static VALUE rkrb5_princ_initialize(VALUE self, VALUE v_name){

Instance Method Details

- (Object) ==(principal2)

Returns whether or not two principals are the same.



# File 'ext/krb5_auth/principal.c'

/*
 * call-seq:
 *   principal1 == principal2
 *
 * Returns whether or not two principals are the same.
 */
static VALUE rkrb5_princ_equal(VALUE self, VALUE v_other){

- (Object) inspect

A custom inspect method for the Principal object.



# File 'ext/krb5_auth/principal.c'

/* 
 * call-seq:
 *   principal.inspect
 *
 * A custom inspect method for the Principal object.
 */
static VALUE rkrb5_princ_inspect(VALUE self){

- (Object) realm

Returns the realm for the given principal.



# File 'ext/krb5_auth/principal.c'

/*
 * call-seq:
 *   principal.realm
 *
 * Returns the realm for the given principal.
 */
static VALUE rkrb5_princ_get_realm(VALUE self){

- (Object) realm=

Sets the realm for the given principal.



# File 'ext/krb5_auth/principal.c'

/*
 * call-seq:
 *   principal.realm = 'YOUR.REALM'
 *
 * Sets the realm for the given principal.
 */
static VALUE rkrb5_princ_set_realm(VALUE self, VALUE v_realm){