org.csapi.jr.se.pam
Class PAMAttribute

java.lang.Object
  |
  +--org.csapi.jr.se.pam.PAMAttribute
All Implemented Interfaces:
java.io.Serializable

public final class PAMAttribute
extends java.lang.Object
implements java.io.Serializable

This is a Sequence of Data Elements containing the attribute name, expiration time and value. This is derived from the common attribute type TpAttribute to add the expiration value for dynamic attributes.

See Also:
Serialized Form

Constructor Summary
PAMAttribute()
          Creates a new PAMAttribute instance.
PAMAttribute(java.lang.String _attributeName, org.csapi.jr.se.AttributeValue _attributeValue, long _expiresIn)
          Creates a new PAMAttribute instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 java.lang.String getAttributeName()
          This method returns a attributeName.
 org.csapi.jr.se.AttributeValue getAttributeValue()
          This method returns a attributeValue.
 long getExpiresIn()
          This method returns a expiresIn.
 int hashCode()
          Returns a hashcode value for the object.
 void setAttributeName(java.lang.String attributeName)
          This method sets a attributeName.
 void setAttributeValue(org.csapi.jr.se.AttributeValue attributeValue)
          This method sets a attributeValue.
 void setExpiresIn(long expiresIn)
          This method sets a expiresIn.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PAMAttribute

public PAMAttribute()
Creates a new PAMAttribute instance.


PAMAttribute

public PAMAttribute(java.lang.String _attributeName,
                    org.csapi.jr.se.AttributeValue _attributeValue,
                    long _expiresIn)
Creates a new PAMAttribute instance.

Parameters:
_attributeName - The name of the attribute.
_attributeValue - The typed value(s) for the attribute.
_expiresIn - The interval in milliseconds in which the attribute values are valid. A time interval of PAM_MAX_LONGINT indicates static attribute values that never expire. A time interval of 0 or negative values indicate an expired value and the time for which it has expired.
Method Detail

getAttributeName

public java.lang.String getAttributeName()
This method returns a attributeName.

Returns:
a String value

getAttributeValue

public org.csapi.jr.se.AttributeValue getAttributeValue()
This method returns a attributeValue.

Returns:
a org.csapi.jr.se.AttributeValue value

getExpiresIn

public long getExpiresIn()
This method returns a expiresIn.

Returns:
a long value

setAttributeName

public void setAttributeName(java.lang.String attributeName)
This method sets a attributeName.


setAttributeValue

public void setAttributeValue(org.csapi.jr.se.AttributeValue attributeValue)
This method sets a attributeValue.


setExpiresIn

public void setExpiresIn(long expiresIn)
This method sets a expiresIn.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object