|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.security.DefaultVerifier issrg.security.DefaultSecurity issrg.security.MultiFileTypeSecurity
public class MultiFileTypeSecurity
Field Summary |
---|
Constructor Summary | |
---|---|
MultiFileTypeSecurity()
Creates a new instance of MultiFileTypeSecurity |
Method Summary | |
---|---|
protected FilenameCallback |
getFilenameCallback(java.lang.String filename)
This method returns a FilenameCallback that prompts for implementation-specific type of files. |
java.security.cert.Certificate[][] |
getPKCs()
this method is used to get the PKCs, which authenticates the user. |
java.security.Key[] |
getPrivateKeys()
this method is used to get the private Keys, which authenticates the user. |
java.security.cert.Certificate[] |
getTrustedCertificates()
this method is used to get the trusted certificates. |
java.lang.String |
getUserDN()
this method returns the user DN |
void |
login(java.lang.String proxy)
this method is used to authenticate the user with his proxy certificate. |
void |
login(java.lang.String keystore,
char[] password)
This method logs in using a single password. |
void |
login(java.lang.String keystore,
int type,
char[] passwd)
this method is used to authenticate the user with a keystore. |
void |
login(java.lang.String pkc,
java.lang.String key,
int type)
this method is used to authenticate the user with his key pair. |
void |
login(java.lang.String pkc,
java.lang.String key,
int type,
java.lang.String password)
this method is used to authenticate the user with his key pair. |
void |
loginWithKeystore(java.lang.String keystore,
char[] passwd,
java.lang.String type)
this method login the user with a keystore |
Methods inherited from class issrg.security.DefaultSecurity |
---|
abort, commit, getDigestAlgorithm, getPrivateKey, getSignature, getSigningAlgorithmID, getVerificationCertificate, initialize, isLoggedIn, login, login, logout, setDigestAlgorithm, setPrivateKey, setSignature, sign |
Methods inherited from class issrg.security.DefaultVerifier |
---|
getPKCRepository, getRootCAs, getVerificationCertificates, setPKCRepository, setRootCA, setRootCA, setRootCAs, setRootCAs, verify, verifyByRoot |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiFileTypeSecurity() throws SecurityException
SecurityException
Method Detail |
---|
public void login(java.lang.String keystore, int type, char[] passwd) throws SecurityException
keystore
- is the file name of the keystore.type
- is the type of the keystore (P12 or JKS).passwd
- is the password of the keystore.
SecurityException
public void login(java.lang.String keystore, char[] password) throws SecurityException
DefaultSecurity
login
in class DefaultSecurity
keystore
- - the file containing the encrypted Private Key of the userpassword
- - the password to be used to decrypt the key
SecurityException
public void loginWithKeystore(java.lang.String keystore, char[] passwd, java.lang.String type) throws SecurityException
keystore
- is the file name of the keystore.passwd
- is the password of the keystore.type
- is the type of the srore "PKCS12" or "JKS"
SecurityException
public void login(java.lang.String pkc, java.lang.String key, int type, java.lang.String password) throws SecurityException
pkc
- is the file name of a public key certificate.key
- is the file name of a private key (OpenSSL PEM Key).password
- is the password to protect the private key. i.e. the key must be encrypted.
if password is null, then an unencrypted key is assumed.
SecurityException
public void login(java.lang.String pkc, java.lang.String key, int type) throws SecurityException
pkc
- is the file name of a public key certificate.key
- is the file name of a private key. The key should not be encrypted.type
- is the key type (i.e. DSA or RSA).
SecurityException
public void login(java.lang.String proxy) throws SecurityException
proxy
- is the file name of a proxy certificate.
SecurityException
public java.security.cert.Certificate[] getTrustedCertificates()
public java.security.cert.Certificate[][] getPKCs()
public java.security.Key[] getPrivateKeys()
public java.lang.String getUserDN()
protected FilenameCallback getFilenameCallback(java.lang.String filename)
getFilenameCallback
in class DefaultSecurity
filename
- - the default file to be prompted by CallbackHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |