Package dev.galasa.zossecurity
Interface IZosKeyring
public interface IZosKeyring
Represents a keyring that has been created.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectCertificate
(IZosCertificate certificate) Connect this keyring to a certificatevoid
connectCertificate
(IZosCertificate certificate, boolean defaultCertificate) Connect this keyring to a certificatevoid
connectCertificate
(IZosCertificate certificate, boolean defaultCertificate, RACFCertificateType usage) Connect this keyring to a certificatevoid
connectCertificate
(String userid, String label) Connect this keyring to a certificate which outside the control of Galasavoid
connectCertificate
(String userid, String label, boolean defaultCertificate) Connect this keyring to a certificate which outside the control of Galasavoid
delete()
Delete this keyringvoid
free()
Free the keyring.getLabel()
Retieve the label of this keyringRetrieve the userid this keyring has been attached tolist()
List the keyringvoid
removeCertificate
(IZosCertificate certificate) Remove a certificate from this keyringvoid
removeCertificate
(String userid, String label) Remove a non Galasa certificate from this keyring
-
Method Details
-
getUserid
String getUserid()Retrieve the userid this keyring has been attached to- Returns:
- The userid
-
getLabel
String getLabel()Retieve the label of this keyring- Returns:
- The Label
-
delete
Delete this keyring- Throws:
ZosSecurityManagerException
-
connectCertificate
void connectCertificate(IZosCertificate certificate, boolean defaultCertificate, RACFCertificateType usage) throws ZosSecurityManagerException Connect this keyring to a certificate- Parameters:
certificate
- - The certificate to connect todefaultCertificate
- - Mark this certificate as the default in the keyringusage
- - The USAGE to use when connecting- Throws:
ZosSecurityManagerException
-
connectCertificate
void connectCertificate(IZosCertificate certificate, boolean defaultCertificate) throws ZosSecurityManagerException Connect this keyring to a certificate- Parameters:
certificate
- - The certificate to connect todefaultCertificate
- - Mark this certificate as the default in the keyring- Throws:
ZosSecurityManagerException
-
connectCertificate
void connectCertificate(String userid, String label, boolean defaultCertificate) throws ZosSecurityManagerException Connect this keyring to a certificate which outside the control of Galasa- Parameters:
userid
- - The userid that owns the certificatelabel
- - The label of the certificatedefaultCertificate
- - Mark this certificate as the default in the keyring- Throws:
ZosSecurityManagerException
-
connectCertificate
Connect this keyring to a certificate- Parameters:
certificate
- - The certificate to connect to- Throws:
ZosSecurityManagerException
-
connectCertificate
Connect this keyring to a certificate which outside the control of Galasa- Parameters:
userid
- - The userid that owns the certificatelabel
- - The label of the certificate- Throws:
ZosSecurityManagerException
-
removeCertificate
Remove a certificate from this keyring- Parameters:
certificate
- - The certificate to remove- Throws:
ZosSecurityManagerException
-
removeCertificate
Remove a non Galasa certificate from this keyring- Parameters:
userid
- - The userid that owns the certificatelabel
- - The label of the certificate- Throws:
ZosSecurityManagerException
-
list
List the keyring- Returns:
- Throws:
ZosSecurityManagerException
-
free
Free the keyring. This will be performed automatically at the end of the run- Throws:
ZosSecurityManagerException
-