Package dev.galasa.zossecurity
Interface IZosCertificate
public interface IZosCertificate
Represents a Certificate that has been imported into RACF
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectKeyring
(IZosKeyring keyring) Connect this certificate to a RACF keyringvoid
connectKeyring
(IZosKeyring keyring, boolean defaultCertificate) Connect this certificate to a RACF keyringvoid
connectKeyring
(IZosKeyring keyring, boolean defaultCertificate, RACFCertificateType usage) Connect this certificate to a RACF keyringvoid
delete()
Delete the certificate from RACFvoid
free()
Free the certificate.getLabel()
Retrieves the certificate label used in RACFgetType()
Retrieves the certificate typeRetrieves the userid the certificate was attached tolist()
List the certificatevoid
removeKeyring
(IZosKeyring keyring) Remove this certificate from a RACF keyring
-
Method Details
-
getUserid
String getUserid()Retrieves the userid the certificate was attached to- Returns:
- The userid
-
getLabel
String getLabel()Retrieves the certificate label used in RACF- Returns:
- The label
-
delete
Delete the certificate from RACF- Throws:
ZosSecurityManagerException
-
connectKeyring
Connect this certificate to a RACF keyring- Parameters:
keyring
-- Throws:
ZosSecurityManagerException
-
connectKeyring
void connectKeyring(IZosKeyring keyring, boolean defaultCertificate) throws ZosSecurityManagerException Connect this certificate to a RACF keyring- Parameters:
keyring
-defaultCertificate
- - Mark this certificate as the default in the keyring- Throws:
ZosSecurityManagerException
-
connectKeyring
void connectKeyring(IZosKeyring keyring, boolean defaultCertificate, RACFCertificateType usage) throws ZosSecurityManagerException Connect this certificate to a RACF keyring- Parameters:
keyring
-defaultCertificate
- - Mark this certificate as the default in the keyringusage
- - The usage to set when connecting- Throws:
ZosSecurityManagerException
-
removeKeyring
Remove this certificate from a RACF keyring- Parameters:
keyring
-- Throws:
ZosSecurityManagerException
-
getType
RACFCertificateType getType()Retrieves the certificate type- Returns:
-
list
List the certificate- Returns:
- Throws:
ZosSecurityManagerException
-
free
Free the certificate. This will be performed automatically at the end of the run- Throws:
ZosSecurityManagerException
-