@Override public CertificateToken addCertificate(final CertificateToken x509Certificate){
  final CertificateToken certToken=certPool.getInstance(x509Certificate,getCertificateSourceType());
  if (certificateTokens != null) {
    if (!certificateTokens.contains(certToken)) {
      certificateTokens.add(certToken);
    }
  }
  return certToken;
}

@ Override public CertificateToken addCertificate ( final CertificateToken x509Certificate ) { final CertificateToken certToken = certPool . getInstance ( x509Certificate , getCertificateSourceType ( ) ) ; if ( certificateTokens != null ) { if ( ! certificateTokens . contains ( certToken ) ) { certificateTokens . add ( certToken ) ; } } return certToken ; }
this method adds an external certificate to the encapsulated pool and to the source . if the certificate is already present in the pool its source type is associated to the token .
