Interface RemoteSignatureTokenConnection
- All Known Implementing Classes:
RemoteSignatureTokenConnectionImpl
public interface RemoteSignatureTokenConnection
The interface used for a remote signing
-
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.ws.server.signing.dto.RemoteKeyEntryRetrieves a key by its aliasList<eu.europa.esig.dss.ws.server.signing.dto.RemoteKeyEntry> getKeys()Retrieves all the available keys (private keys entries) from the token.eu.europa.esig.dss.ws.dto.SignatureValueDTOsign(eu.europa.esig.dss.ws.dto.ToBeSignedDTO toBeSigned, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, String alias) This method signs thetoBeSigneddata with the digestdigestAlgorithmand the givenalias.eu.europa.esig.dss.ws.dto.SignatureValueDTOsign(eu.europa.esig.dss.ws.dto.ToBeSignedDTO toBeSigned, eu.europa.esig.dss.enumerations.SignatureAlgorithm signatureAlgorithm, String alias) This method signs thetoBeSigneddata with the digestsignatureAlgorithmand the givenalias.eu.europa.esig.dss.ws.dto.SignatureValueDTOsignDigest(eu.europa.esig.dss.ws.dto.DigestDTO digest, eu.europa.esig.dss.enumerations.SignatureAlgorithm signatureAlgorithm, String alias) This method signs thedigestdata with asignatureAlgorithmand the givenalias.eu.europa.esig.dss.ws.dto.SignatureValueDTOsignDigest(eu.europa.esig.dss.ws.dto.DigestDTO digest, String alias) This method signs thedigestdata with the givenalias.
-
Method Details
-
getKeys
List<eu.europa.esig.dss.ws.server.signing.dto.RemoteKeyEntry> getKeys() throws eu.europa.esig.dss.model.DSSExceptionRetrieves all the available keys (private keys entries) from the token.- Returns:
- List of encapsulated private keys
- Throws:
eu.europa.esig.dss.model.DSSException- If there is any problem during the retrieval process
-
getKey
eu.europa.esig.dss.ws.server.signing.dto.RemoteKeyEntry getKey(String alias) throws eu.europa.esig.dss.model.DSSException Retrieves a key by its alias- Parameters:
alias- the key alias to retrieve- Returns:
- the RemoteKeyEntry with the given alias
- Throws:
eu.europa.esig.dss.model.DSSException
-
sign
eu.europa.esig.dss.ws.dto.SignatureValueDTO sign(eu.europa.esig.dss.ws.dto.ToBeSignedDTO toBeSigned, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, String alias) throws eu.europa.esig.dss.model.DSSException This method signs thetoBeSigneddata with the digestdigestAlgorithmand the givenalias.- Parameters:
toBeSigned- The data that need to be signeddigestAlgorithm- The digest algorithm to be used before signingalias- The key alias to be used- Returns:
- The array of bytes representing the signature value
- Throws:
eu.europa.esig.dss.model.DSSException- If there is any problem during the signature process
-
sign
eu.europa.esig.dss.ws.dto.SignatureValueDTO sign(eu.europa.esig.dss.ws.dto.ToBeSignedDTO toBeSigned, eu.europa.esig.dss.enumerations.SignatureAlgorithm signatureAlgorithm, String alias) throws eu.europa.esig.dss.model.DSSException This method signs thetoBeSigneddata with the digestsignatureAlgorithmand the givenalias.- Parameters:
toBeSigned- The data that need to be signedsignatureAlgorithm- The signature algorithm to be used for signingalias- The key alias to be used- Returns:
- The array of bytes representing the signature value
- Throws:
eu.europa.esig.dss.model.DSSException- If there is any problem during the signature process
-
signDigest
eu.europa.esig.dss.ws.dto.SignatureValueDTO signDigest(eu.europa.esig.dss.ws.dto.DigestDTO digest, String alias) throws eu.europa.esig.dss.model.DSSException This method signs thedigestdata with the givenalias.- Parameters:
digest- The digested data that need to be signedalias- The key alias to be used- Returns:
- the signature value representation with the used algorithm and the binary value
- Throws:
eu.europa.esig.dss.model.DSSException- If there is any problem during the signature process
-
signDigest
eu.europa.esig.dss.ws.dto.SignatureValueDTO signDigest(eu.europa.esig.dss.ws.dto.DigestDTO digest, eu.europa.esig.dss.enumerations.SignatureAlgorithm signatureAlgorithm, String alias) throws eu.europa.esig.dss.model.DSSException This method signs thedigestdata with asignatureAlgorithmand the givenalias.- Parameters:
digest- The digested data that need to be signedsignatureAlgorithm- The signature algorithm to be used for signingalias- The key alias to be used- Returns:
- the signature value representation with the used algorithm and the binary value
- Throws:
eu.europa.esig.dss.model.DSSException- If there is any problem during the signature process
-