|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAADSConnection
Interface class for connecting to a VHI AADS and for managing certificates. Use the ServerConfig.newAADSConnection() methods to create instances of this interface.
Method Summary | |
---|---|
boolean |
compareCertificate(SCCertificate scc,
java.lang.String fingerprint)
Calculate a fingerprint for a certificate and compare it to a fingerprint string. |
void |
connect()
Make a connection to an AADS server for the potential purpose of obtaining a list of servers and/or domains. |
boolean |
deleteCertificate(java.lang.String AADSName)
Remove a certificate from our local keystore map. |
void |
disconnect()
disconnect from the AADS server, if we are connected. |
java.lang.String |
getAADSName()
Get the name of the AADS for this instance. |
SCCertificate |
getCertificate(java.lang.String AADSName)
Get a certificate from our local keystore map. |
SCCertificate |
getCertificateFromAADS(java.lang.String AADSName)
Obtain a current certificate directly from an AADS. |
void |
loadKeystore(java.lang.String keystoreFile)
Read our AADS keystore map from a local disk file. |
void |
saveKeystore(java.lang.String keystoreFile)
Write our AADS keystore map to a local disk file. |
void |
storeCertificate(SCCertificate scc)
Add an AADS certificate to our local keystore map. |
Method Detail |
---|
SCCertificate getCertificateFromAADS(java.lang.String AADSName) throws SCException
AADSName
- Name of AADS.
SCException
- if there is a failure getting
the certificate from the AADS.boolean compareCertificate(SCCertificate scc, java.lang.String fingerprint)
scc
- Reference to a certificate.fingerprint
- Reference to a fingerprint string of the form:
C4:9C:C0:B5:8B:A4:B7:84:FC:4F:EB:79:72:5B:03:99:C9:E0:D9:D1
java.lang.IllegalArgumentException
- is thrown if arguments are
not valid.void storeCertificate(SCCertificate scc)
scc
- Reference to the certificate to be stored.SCCertificate getCertificate(java.lang.String AADSName)
AADSName
- Name of the AADS server for which the certificate
is to be obtained.
boolean deleteCertificate(java.lang.String AADSName)
AADSName
- Name of the AADS server for which the certificate
is to be removed.
void loadKeystore(java.lang.String keystoreFile) throws java.io.IOException, java.lang.ClassNotFoundException, java.io.FileNotFoundException
keystoreFile
- Name of the local disk file from which
the keystore information is to be read.
java.io.IOException
- if there is an error opening or
reading the file.
java.io.FileNotFoundException
- if there is an error opening
the keystore file.
java.lang.ClassNotFoundException
- if the keystore file
contents are not recognized to be valid.void saveKeystore(java.lang.String keystoreFile) throws java.io.IOException
keystoreFile
- Name of the local disk file to which
the keystore information is to be written.
java.io.IOException
- if there is an error opening or
writing the file.void connect() throws SCException
SCException
- is thrown if the certificate for the
specified AADS is not present, or there is an error connecting
to the AADS server.void disconnect()
java.lang.String getAADSName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |