Class SecurityCookieData
java.lang.Object
org.deltava.security.SecurityCookieData
- All Implemented Interfaces:
- Serializable
A bean containing data stored in the security cookie.
- Since:
- 1.0
- Version:
- 10.1
- Author:
- Luke
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSecurityCookieData(String userID) Creates security cookie data for a given user ID.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the expiration date of the cookie.Returns the login date.Returns the remote address of the user.Returns the encrypted cookie signature algorithm name.Retrieves the user ID from this security cookie.inthashCode()booleanChecks if the security cookie has expired.voidsetExpiryDate(Instant dt) Sets the expiry date of the security cookie.voidsetLoginDate(Instant dt) Sets the login date.voidsetRemoteAddr(String remoteAddr) Updates the user's IP address.voidUpdates the signature algorithm for the encrypted cookie.toString()
- 
Constructor Details- 
SecurityCookieDataCreates security cookie data for a given user ID.- Parameters:
- userID- the user ID
 
 
- 
- 
Method Details- 
getExpiryDateReturns the expiration date of the cookie.- Returns:
- the expiration date
 
- 
getLoginDate
- 
getUserIDRetrieves the user ID from this security cookie.- Returns:
- the Directory Name of the user
 
- 
getRemoteAddr
- 
getSignatureAlgorithmReturns the encrypted cookie signature algorithm name.- Returns:
- the algorithm name
 
- 
isExpiredpublic boolean isExpired()Checks if the security cookie has expired.- Returns:
- TRUE if the cookie has expired, otherwise FALSE
 
- 
setExpiryDateSets the expiry date of the security cookie.- Parameters:
- dt- the expiration date
 
- 
setLoginDate
- 
setRemoteAddrUpdates the user's IP address.- Parameters:
- remoteAddr- the IP address
 
- 
setSignatureAlgorithmUpdates the signature algorithm for the encrypted cookie.- Parameters:
- alg- the algorithm name
 
- 
hashCode
- 
toString
 
-