Completed

Função Http Get em Java - Com certificado digital instalado no windows.

Published on the February 04, 2017 in IT & Programming

About this project

Open

Preciso de uma função em java para execultar um http get utilizando os certificados digitais instalados no windows. A função deve funcionar tanto com certificados token e não token.

A função final deve ter a seguinte estrutura:
public static String HttpGet(String URL, String CertSerialNumber, String CertPassword){
      //Desenvolver essa parte        
      return "";
}

Para selecionar o certificado digital tem que ser utilizando apenas o SerialNumber do certificado digital. Um outro detalhe é que quando for um certificado digital token a senha deve ser informada diretamente na função e quando o certificado digital não for token ela pode ficar em branco.

Veja o exemplo de como a função deve ser testada.
Public static void main(String[] args){
    System.out.print(
          HttpGet(
              "https://vps0532.publiccloud.com.br",
              "10951ADA7AD47C40A0538D149C3DC929",
              ""//Certificado Digital não token, por isso senha em branco
          )
    );
}

O desenvolvedor tem que ter a habilidade de trabalhar com os certificado digitais instalados no windows e saber fazer os Request Get com certificados digitais.

Category IT & Programming
Subcategory Other
Project size Medium
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)

Delivery term: Not specified

Skills needed