Method: CF::UAA::TokenCoder#initialize
- Defined in:
- lib/uaa/token_coder.rb
#initialize(options = {}, obsolete1 = nil, obsolete2 = nil) ⇒ TokenCoder
Note:
the TokenCoder instance must be configured with the appropriate key material to support particular algorithm families and operations – i.e. :pkey must include a private key in order to sign tokens with the RS algorithms.
Creates a new token en/decoder for a service that is associated with the the audience_ids, the symmetrical token validation key, and the public and/or private keys.
151 152 153 154 155 156 157 158 159 |
# File 'lib/uaa/token_coder.rb', line 151 def initialize( = {}, obsolete1 = nil, obsolete2 = nil) unless .is_a?(Hash) && obsolete1.nil? && obsolete2.nil? # deprecated: def initialize(audience_ids, skey, pkey = nil) warn "#{self.class}##{__method__} is deprecated with these parameters. Please use options hash." = {:audience_ids => } [:skey], [:pkey] = obsolete1, obsolete2 end = self.class.() end |