be.fgov.ehealth.technicalconnector.distributedkeys.proxy

## Class CredentialProxy

- java.lang.Object
- - be.fgov.ehealth.technicalconnector.distributedkeys.proxy.CredentialProxy

- All Implemented Interfaces:
    DistributedSignerProxy, Serializable

      public class CredentialProxy
      extends Object
      implements DistributedSignerProxy

  Implementation of the `DistributedSignerProxy` and using a Credential as implementation.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CredentialProxy(Credential cred)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getAlgorithm(String alias)` Returns the standard algorithm name for this key.
    `Set<String>` | `getAliases()` Method for obtaining all the aliases that are supported by the distributed keystore.
    `List<X509Certificate>` | `getCertificateChain(String alias)` Method for obtaining the certificate chain based on the distriubted keystore and the alias.
    `byte[]` | `sign(byte[] digestValue, String digestAlgo, String alias)` Method used for signing a already calculated digest.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CredentialProxy

          public CredentialProxy(Credential cred)

  - ### Method Detail

    - #### sign

          public byte[] sign(byte[] digestValue,
                             String digestAlgo,
                             String alias)
                      throws SignatureException

      Description copied from interface: `DistributedSignerProxy`
      Method used for signing a already calculated digest.
      Specified by:
        `sign` in interface `DistributedSignerProxy`
      Throws:
        `SignatureException`

    - #### getAliases

          public Set<String> getAliases()

      Description copied from interface: `DistributedSignerProxy`
      Method for obtaining all the aliases that are supported by the distributed keystore.
      Specified by:
        `getAliases` in interface `DistributedSignerProxy`

    - #### getCertificateChain

          public List<X509Certificate> getCertificateChain(String alias)

      Description copied from interface: `DistributedSignerProxy`
      Method for obtaining the certificate chain based on the distriubted keystore and the alias. The first entry of the list is the actual certificate. The second entry the CA of your certificate. The third entry should be CA of the CA of you certificate. ...
      Specified by:
        `getCertificateChain` in interface `DistributedSignerProxy`

    - #### getAlgorithm

          public String getAlgorithm(String alias)

      Description copied from interface: `DistributedSignerProxy`
      Returns the standard algorithm name for this key. For example, "RSA" would indicate that this key is a RSA key. See Appendix A in the Java Cryptography Architecture API Specification & Reference
      Specified by:
        `getAlgorithm` in interface `DistributedSignerProxy`
      Returns:
        the name of the algorithm associated with this key.

Connector Packaging TRUSSMAKER 4.8.4 API
Copyright © {inceptionYear}-2025 eHealth. All Rights Reserved.