|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.nfs.NfsSecurity
public final class NfsSecurity
NfsSecurity is a static class. It reads in the com.sun.properties.nfssec properties file and provides the vehicle to retrieve properties values which are the (mechanism, service, qop) mappings for the NFS security pseudo flavor numbers.
Constructor Summary | |
---|---|
NfsSecurity()
|
Method Summary | |
---|---|
static java.lang.String |
getDefault()
Get the default security flavor number if it is specified in the nfssec.properties file, otherwise, simply return "1" for AUTH_SYS. |
static java.lang.String |
getMech(java.lang.String key)
getMech will get the security mechanism OID string from the second token in the value. |
static java.lang.String |
getName(java.lang.String key)
getName will get the NFS security flavor name from the first token in the value. |
static java.lang.String |
getPrefer()
Get the preferred nfs security flavor number if it is specified in the nfssec.properties file, otherwise, return null. |
static int |
getQop(java.lang.String key)
getQop will get the Quality of Protection number from the fourth token in the value. |
static int |
getService(java.lang.String key)
getService will get the security service type from the third token in the value. |
static boolean |
hasValue(java.lang.String key)
Does the key have a value defined in the nfssec.properties file? (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NfsSecurity()
Method Detail |
---|
public static boolean hasValue(java.lang.String key)
key
- the key to be searchedpublic static java.lang.String getDefault()
public static java.lang.String getPrefer()
public static java.lang.String getName(java.lang.String key)
key
- the key to be searchedpublic static java.lang.String getMech(java.lang.String key)
key
- the key to be searchedpublic static int getService(java.lang.String key)
key
- the key to be searchedpublic static int getQop(java.lang.String key)
key
- the key to be searched
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |