com.ibm.security.jgss.mech.krb5

Class AuthZInfo

  1. java.lang.Object
  2. extended bycom.ibm.security.jgss.mech.krb5.AuthZInfo

  1. public abstract class AuthZInfo
  2. extends java.lang.Object
This class surfaces the APIs that the Authorization cache must implement. All interactions with cache implementations should go through methods in this class. In particular, all subclasses MUST implement a static getReference method, or they will be ignored. There is no way in Java to require a class method (instead of instance methods), but the mechanism will not function correctly without it.

This class examines a property, com.ibm.security.jgss.mech.krb5.AuthZCacheClass to see if a cache classname has been specified. If no classname has been specified, no caching will be done. If a class has been specified, then this cache class will have to be a subclass of AuthZInfo, and will need to be found through the system ClassLoader. Since we are using the system ClassLoader, caches in the classpath could be used, but we strongly recommend that they be in extensions or the boot classpath.


Constructor Summary

Constructor and Description
AuthZInfo()

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. java.lang.Object
get(java.lang.Object key)
Lookup and return the value stored for this key
  1. static
  2. AuthZInfo
getReference()
Return an instance of an AuthZInfo cache object.
  1. abstract
  2. java.lang.Object
put(java.lang.Object key,java.lang.Object value)
Insert a new value for a particular key
  1. abstract
  2. void
releaseReference()
Release the handle to the authorization data cache
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AuthZInfo

  1. public AuthZInfo()

Method Detail

getReference

  1. public static AuthZInfo getReference( )
Return an instance of an AuthZInfo cache object. If necessary, this could involve construction of a new cache.
Returns:
an instance of an AuthZInfo object.

get

  1. public abstract java.lang.Object get( java.lang.Object key)
Lookup and return the value stored for this key
Parameters:
key - The key object used on the put. In this version, this is an org.ietf.jgss.GSSContext object.
Returns:
the value stored for this key, or null if no value was found for this key.

put

  1. public abstract java.lang.Object put( java.lang.Object key,
  2. java.lang.Object value)
Insert a new value for a particular key
Parameters:
key - The object that will map to the value. In this version of the code, the key is an org.ietf.jgss.GSSContext.
value - The value that the key will map to. In this version of the code, this will be the body of the DER tag 0xaa.
Returns:
the previous value for this key, or null.

releaseReference

  1. public abstract void releaseReference( )
Release the handle to the authorization data cache