Sha256: c2507351ec4e4755de608d4af9bb474a530fa97cbc9775592ae44a45e2de0b74

Contents?: true

Size: 682 Bytes

Versions: 25

Compression:

Stored size: 682 Bytes

Contents

module CASClient
  # Represents a CAS service ticket.
  class ServiceTicket
    attr_reader :ticket, :service, :renew
    attr_accessor :response
    
    def initialize(ticket, service, renew = false)
      @ticket = ticket
      @service = service
      @renew = renew
    end
    
    def is_valid?
      response.is_success?
    end
    
    def has_been_validated?
      not response.nil?
    end
  end
  
  # Represents a CAS proxy ticket.
  class ProxyTicket < ServiceTicket
  end
  
  class ProxyGrantingTicket
    attr_reader :ticket, :iou
    
    def initialize(ticket, iou)
      @ticket = ticket
      @iou = iou
    end
    
    def to_s
      ticket
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
derfred-rubycas-client-2.0.999 lib/casclient/tickets.rb
derfred-rubycas-client-2.0.9991 lib/casclient/tickets.rb
derfred-rubycas-client-2.0.9992 lib/casclient/tickets.rb
derfred-rubycas-client-2.0.9993 lib/casclient/tickets.rb
gunark-rubycas-client-2.0.99 lib/casclient/tickets.rb
gunark-rubycas-client-2.1.0 lib/casclient/tickets.rb
jorahood-rubycas-client-2.0.99.1 lib/casclient/tickets.rb
lastobelus-rubycas-client-2.0.4 lib/casclient/tickets.rb
lastobelus-rubycas-client-2.0.5 lib/casclient/tickets.rb
lastobelus-rubycas-client-2.0.6 lib/casclient/tickets.rb
lastobelus-rubycas-client-2.0.7 lib/casclient/tickets.rb
vibes-rubycas-client-2.3.0.alpha6 lib/casclient/tickets.rb
vibes-rubycas-client-2.3.0.alpha5 lib/casclient/tickets.rb
vibes-rubycas-client-2.3.0.alpha4 lib/casclient/tickets.rb
vibes-rubycas-client-2.3.0.alpha3 lib/casclient/tickets.rb
vibes-rubycas-client-2.3.0.alpha2 lib/casclient/tickets.rb
vibes-rubycas-client-2.3.0.alpha lib/casclient/tickets.rb
echocas-client-2.1.3 lib/casclient/tickets.rb
echocas-client-2.1.2 lib/casclient/tickets.rb
rubycas-client-2.2.1 lib/casclient/tickets.rb