|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.saml.SAMLSecurity
public class SAMLSecurity
Field Summary | |
---|---|
static int |
DSA
|
static int |
ENCRYPTEDKEY
|
static int |
JKS
|
static int |
KEY
|
static int |
KEYSTORE
|
static int |
KEYSTORE_TYPE
|
static int |
PASSWORD
|
static int |
PKC
|
static int |
PKCS12
This class implements a security that uses a PKCS#12 file, a proxy certificate file or a pair of key files (PKC and private key) to authenticate the user and obtain the signing and signature verification keys. |
static java.lang.String[] |
prompts
|
static int |
PROXY_CERTIFICATE
|
static int |
RSA
|
Constructor Summary | |
---|---|
SAMLSecurity()
|
Method Summary | |
---|---|
java.lang.String |
callbackInfo(int type)
this method is used to callback a security information, which was used to login the user. |
java.security.cert.Certificate[][] |
getPKCs()
this method is used to get the PKC chains, which authenticates the user. |
java.security.Key[] |
getPrivateKeys()
this method is used to set 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(int method)
this method is used to authenticate the user interactively with a proxy certificate a keystore a key pair (PKC and private key) |
void |
LoginByProg(int type,
java.lang.String pkc,
java.lang.String key)
this method is used to authenticate the user programatically with a key pair. |
void |
LoginByProg(int type,
java.lang.String pkc,
java.lang.String key,
java.lang.String passwd)
this method is used to authenticate the user programatically with a key pair. |
void |
LoginByProg(java.lang.String proxy)
this method is used to authenticate the user programatically with a proxy certificate. |
void |
LoginByProg(java.lang.String keystore,
java.lang.String passwd,
int type)
this method is used to authenticate the user programatically with a keystore file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int PKCS12
public static int JKS
public static int RSA
public static int DSA
public static int ENCRYPTEDKEY
public static int PASSWORD
public static int PROXY_CERTIFICATE
public static int KEYSTORE
public static int PKC
public static int KEY
public static int KEYSTORE_TYPE
public static java.lang.String[] prompts
Constructor Detail |
---|
public SAMLSecurity() throws SecurityException
SecurityException
Method Detail |
---|
public void login(int method) throws java.lang.Exception
method
- is used to indicate the authentication method, specified by
KEY, ENCRYPTEDKEY,PROXY_CERTIFICATE and KEYSTORE.
java.lang.Exception
public void LoginByProg(java.lang.String keystore, java.lang.String passwd, int type) throws SecurityException
keystore
- is the file name of the keystore.passwd
- is the passphrase of the file.type
- is the type of the keystore (PKCS12 or JKS).
SecurityException
public void LoginByProg(int type, java.lang.String pkc, java.lang.String key) throws SecurityException
pkc
- is the file name of the public key certificate.key
- is the file name of the private key. the key should not be encryptedtype
- is the type of the key.
SecurityException
public void LoginByProg(int type, java.lang.String pkc, java.lang.String key, java.lang.String passwd) throws SecurityException
pkc
- is the file name of the public key certificate.key
- is the file name of the private key. the key must be encryptedtype
- is the type of the key.passwd
- is the password of the key.
SecurityException
public void LoginByProg(java.lang.String proxy) throws SecurityException
proxy
- is the file name of the proxy certificate.
SecurityException
public java.security.cert.Certificate[] getTrustedCertificates()
public java.security.cert.Certificate[][] getPKCs()
public java.security.Key[] getPrivateKeys()
public java.lang.String callbackInfo(int type)
type
- indicates which information is wantted.
public java.lang.String getUserDN()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |