|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbadpenguin.dkim.NSKey
public class NSKey
This Object is used to store a public key and the associated meta data retrieved from DNS (or maybe some other naming system in future). Typically these keys are created and stored in a HashTable by the NSKeyStore object, which means we don't have to make a DNS call every time the DKIM library parses a mail message.
| Constructor Summary | |
|---|---|
NSKey(java.lang.String record,
int cacheTime)
Create a new NSKey object, from the Name Service text record provided in the record string. |
|
| Method Summary | |
|---|---|
java.lang.String |
getGranularity()
Retrieve the granularity value specified in the G tag for this key. |
java.lang.String |
getHashAlgorithm()
Return the hash algorithms allowed for use with this key, as secified in the H tag. |
java.security.PublicKey |
getKey()
Retrieve the public key from this NSKey object. |
int |
getRetries()
|
boolean |
isExpired()
Check if this key should be expired from the cache. |
boolean |
isTesting()
Returns true if this NSKey record has the "y" flag set. |
boolean |
noSubdomains()
Returns true if this NSKey record has the s flag set. |
boolean |
setUpdating(boolean update)
The NSKeyStore calls this method when it wants to update the key. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NSKey(java.lang.String record,
int cacheTime)
record - - The Name Services TXT recordcacheTime - - number of seconds to cache key for.| Method Detail |
|---|
public boolean isExpired()
public boolean setUpdating(boolean update)
update - true or false
public int getRetries()
public java.security.PublicKey getKey()
throws DkimException
DkimExceptionpublic boolean isTesting()
public boolean noSubdomains()
public java.lang.String getGranularity()
public java.lang.String getHashAlgorithm()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||