|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.eng.rdlab.soa3.pm.connector.utils.SecurityManager
public class SecurityManager
Manages the security features of the connection with the Policy Manager: the class accepts the paths to certificate, private key and truststore directory it also accepts the extension of the trust files. Default values are: certificate /etc/grid-security/hostcert.pem private key /etc/grid-security/hostkey.pem trust store directory /etc/grid-security/certificates trust files extension .0
| Method Summary | |
|---|---|
void |
addTrustedCert(String file)
Adds a single trusted certificate |
static SecurityManager |
getInstance()
|
void |
invalidateTrustedDir(boolean invalidate)
If true is passed, the trust dir won't be taken into account |
void |
loadCertificate()
Loads the configured certificates |
static void |
main(String[] args)
|
void |
setCertFile(String certFile)
Sets the certificate |
void |
setKeyFile(String keyFile)
Sets the key file |
void |
setTrustDir(String trustDir)
Sets the trust directory |
void |
setTrustExt(String trustExt)
The trust extension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SecurityManager getInstance()
public void setCertFile(String certFile)
certFile - the complete path to the certificate PEM filepublic void setKeyFile(String keyFile)
keyFile - the complete path to the key PEM filepublic void setTrustDir(String trustDir)
trustDir - the path to the trust dirpublic void setTrustExt(String trustExt)
trustExt - the trust files extensionpublic void invalidateTrustedDir(boolean invalidate)
invalidate - public void addTrustedCert(String file)
file - the complete path to the trusted certificate PEM file
public void loadCertificate()
throws Exception
Exception
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||