|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.italiangrid.voms.util.CredentialsUtils
public class CredentialsUtils
An utility class for handling credentials
| Nested Class Summary | |
|---|---|
static class |
CredentialsUtils.PrivateKeyEncoding
The encoding used to serialize proxy credentials private key. |
| Field Summary | |
|---|---|
static CredentialsUtils.PrivateKeyEncoding |
DEFAULT_ENCONDING
The default encoding used when no encoding is specified by callers. |
| Constructor Summary | |
|---|---|
CredentialsUtils()
|
|
| Method Summary | |
|---|---|
static void |
savePrivateKey(OutputStream os,
PrivateKey key,
CredentialsUtils.PrivateKeyEncoding encoding)
Serializes a private key to an output stream according to an encoding. |
static void |
saveProxyCredentials(OutputStream os,
eu.emi.security.authn.x509.X509Credential uc)
Saves user credentials as a plain text PEM data. |
static void |
saveProxyCredentials(OutputStream os,
eu.emi.security.authn.x509.X509Credential uc,
CredentialsUtils.PrivateKeyEncoding encoding)
Saves user credentials as a plain text PEM data. |
static void |
saveProxyCredentials(String proxyFileName,
eu.emi.security.authn.x509.X509Credential uc)
Saves proxy credentials to a file. |
static void |
saveProxyCredentials(String proxyFileName,
eu.emi.security.authn.x509.X509Credential uc,
CredentialsUtils.PrivateKeyEncoding encoding)
Saves proxy credentials to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CredentialsUtils.PrivateKeyEncoding DEFAULT_ENCONDING
| Constructor Detail |
|---|
public CredentialsUtils()
| Method Detail |
|---|
public static void savePrivateKey(OutputStream os,
PrivateKey key,
CredentialsUtils.PrivateKeyEncoding encoding)
throws IllegalArgumentException,
IOException
os - key - encoding -
IllegalArgumentException
IOException
public static void saveProxyCredentials(OutputStream os,
eu.emi.security.authn.x509.X509Credential uc,
CredentialsUtils.PrivateKeyEncoding encoding)
throws UnrecoverableKeyException,
KeyStoreException,
IllegalArgumentException,
NoSuchAlgorithmException,
IOException,
NoSuchProviderException,
CertificateException
os - uc - encoding -
UnrecoverableKeyException
KeyStoreException
IllegalArgumentException
NoSuchAlgorithmException
IOException
NoSuchProviderException
CertificateException
public static void saveProxyCredentials(OutputStream os,
eu.emi.security.authn.x509.X509Credential uc)
throws UnrecoverableKeyException,
KeyStoreException,
IllegalArgumentException,
NoSuchAlgorithmException,
IOException,
NoSuchProviderException,
CertificateException
DEFAULT_ENCONDING =
.
os - uc -
UnrecoverableKeyException
KeyStoreException
IllegalArgumentException
NoSuchAlgorithmException
IOException
NoSuchProviderException
CertificateException
public static void saveProxyCredentials(String proxyFileName,
eu.emi.security.authn.x509.X509Credential uc,
CredentialsUtils.PrivateKeyEncoding encoding)
throws IOException,
UnrecoverableKeyException,
KeyStoreException,
IllegalArgumentException,
NoSuchAlgorithmException,
NoSuchProviderException,
CertificateException
proxyFileName - the file where the proxy will be saveduc - the credential to be savedencoding - the private key encoding
IOException
UnrecoverableKeyException
KeyStoreException
IllegalArgumentException
NoSuchAlgorithmException
NoSuchProviderException
CertificateException
public static void saveProxyCredentials(String proxyFileName,
eu.emi.security.authn.x509.X509Credential uc)
throws UnrecoverableKeyException,
KeyStoreException,
IllegalArgumentException,
NoSuchAlgorithmException,
NoSuchProviderException,
CertificateException,
IOException
DEFAULT_ENCONDING =
.
proxyFileName - uc -
UnrecoverableKeyException
KeyStoreException
IllegalArgumentException
NoSuchAlgorithmException
NoSuchProviderException
CertificateException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||