Search in sources :

Example 1 with SshCaTemplateRequest

use of com.venafi.vcert.sdk.certificate.SshCaTemplateRequest in project vcert-java by Venafi.

the class TppTokenConnectorATForSSH method retrieveSshConfigFromCAName.

@Test
@DisplayName("TPP - Testing the retrieveSshConfig() method using CA name")
public void retrieveSshConfigFromCAName() throws VCertException, Exception {
    SshCaTemplateRequest req = new SshCaTemplateRequest().template(System.getenv("TPP_SSH_CA"));
    // getting the sshConfig of the SSH Cert CA
    retrieveSshConfig(req);
}
Also used : SshCaTemplateRequest(com.venafi.vcert.sdk.certificate.SshCaTemplateRequest) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName)

Example 2 with SshCaTemplateRequest

use of com.venafi.vcert.sdk.certificate.SshCaTemplateRequest in project vcert-java by Venafi.

the class TppTokenConnectorATForSSH method retrieveSshConfigWithoutCredentialsFromCAName.

@Test
@Tag("AuthenticationUnneeded")
@DisplayName("TPP - Testing the retrieveSshConfig() method without authentication using CA name")
public void retrieveSshConfigWithoutCredentialsFromCAName() throws VCertException, Exception {
    // Given this test is tagged as AuthenticationUnneeded, then the Authentication will not be performed
    SshCaTemplateRequest req = new SshCaTemplateRequest().template(System.getenv("TPP_SSH_CA"));
    // getting the sshConfig of the SSH Cert CA
    retrieveSshConfigWithoutCredentials(req);
}
Also used : SshCaTemplateRequest(com.venafi.vcert.sdk.certificate.SshCaTemplateRequest) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName) Tag(org.junit.jupiter.api.Tag)

Example 3 with SshCaTemplateRequest

use of com.venafi.vcert.sdk.certificate.SshCaTemplateRequest in project vcert-java by Venafi.

the class TppConnectorATForSSH method retrieveSshConfigFromCAName.

@Test
@DisplayName("TPP - Testing the retrieveSshConfig() method using CA name")
public void retrieveSshConfigFromCAName() throws VCertException, Exception {
    SshCaTemplateRequest req = new SshCaTemplateRequest().template(System.getenv("TPP_SSH_CA"));
    // getting the sshConfig of the SSH Cert CA
    retrieveSshConfig(req);
}
Also used : SshCaTemplateRequest(com.venafi.vcert.sdk.certificate.SshCaTemplateRequest) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName)

Example 4 with SshCaTemplateRequest

use of com.venafi.vcert.sdk.certificate.SshCaTemplateRequest in project vcert-java by Venafi.

the class TppConnectorATForSSH method retrieveSshConfigWithoutCredentialsFromCAName.

@Test
@Tag("AuthenticationUnneeded")
@DisplayName("TPP - Testing the retrieveSshConfig() method without authentication using CA name")
public void retrieveSshConfigWithoutCredentialsFromCAName() throws VCertException, Exception {
    // Given this test is tagged as AuthenticationUnneeded, then the Authentication will not be performed
    SshCaTemplateRequest req = new SshCaTemplateRequest().template(System.getenv("TPP_SSH_CA"));
    // getting the sshConfig of the SSH Cert CA
    retrieveSshConfigWithoutCredentials(req);
}
Also used : SshCaTemplateRequest(com.venafi.vcert.sdk.certificate.SshCaTemplateRequest) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName) Tag(org.junit.jupiter.api.Tag)

Example 5 with SshCaTemplateRequest

use of com.venafi.vcert.sdk.certificate.SshCaTemplateRequest in project vcert-java by Venafi.

the class TppConnectorATForSSH method retrieveSshConfigWithoutCredentialsFromCADN.

@Test
@Tag("AuthenticationUnneeded")
@DisplayName("TPP - Testing the retrieveSshConfig() method without authentication using CADN")
public void retrieveSshConfigWithoutCredentialsFromCADN() throws VCertException, Exception {
    // Given this test is tagged as AuthenticationUnneeded, then the Authentication will not be performed
    SshCaTemplateRequest req = new SshCaTemplateRequest().template(System.getenv("TPP_SSH_CADN"));
    // getting the sshConfig of the SSH Cert CA
    retrieveSshConfigWithoutCredentials(req);
}
Also used : SshCaTemplateRequest(com.venafi.vcert.sdk.certificate.SshCaTemplateRequest) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName) Tag(org.junit.jupiter.api.Tag)

Aggregations

SshCaTemplateRequest (com.venafi.vcert.sdk.certificate.SshCaTemplateRequest)9 DisplayName (org.junit.jupiter.api.DisplayName)8 Test (org.junit.jupiter.api.Test)8 Tag (org.junit.jupiter.api.Tag)4 Config (com.venafi.vcert.sdk.Config)1 VCertTknClient (com.venafi.vcert.sdk.VCertTknClient)1 SshConfig (com.venafi.vcert.sdk.certificate.SshConfig)1 Authentication (com.venafi.vcert.sdk.endpoint.Authentication)1