java.lang.Object | |
↳ | xades4j.production.XadesSigningProfile |
![]() |
![]() |
A profile for signature production. This class and its subclasses are the entry point for producing signatures. A profile is a configuration for the signature production process. This includes not only characteristics of the signer and the signature, such as the signing key/certificate and signature properties, but also components for the process itself, such as digest and time-stamp generation.
The purpose of this class is to configure a XadesSigner
that will actually
produce signatures with those characteristics.
Only a KeyingDataProvider
has to externally be supplied. All the other components
have default implementations that are used if no other actions are taken. However,
all of them can be replaced through the corresponding methods, either by an instance
or a class. When a class is used it may have dependencies on other components,
which will be handled in order to create the XadesSigner
. The types may
also depend on external components, as long as that dependency is registered
with on of the addBinding
methods. To that end, the constructors and/or
setters should use the Inject
annotation from Guice.
Custom PropertyDataObjectGenerator
s can also be configured. The principles
on their dependencies are the same.
The XAdES form is also part of the profile. Each form has additional requirements,
hence being defined by a specific subclass. There are profiles up to XAdES-C.
The extended formats are also supported (with a few limitations) but can only
be added after verfication (XadesVerifier
).
Repeated dependency bindings will not cause an immediate error. An exception
will be thrown when an instance of XadesSigner
is requested.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
XadesSigner based on the current state of the profile. | |||||||||||
This method is deprecated.
This method is deprecated and might be removed on future versions. Classes
registered using this method will be adapted to the new | |||||||||||
This method is deprecated.
This method is deprecated and might be removed on future versions. Classes
registered using this method will be adapted to the new | |||||||||||
This method is deprecated.
This method is deprecated and might be removed on future versions. Classes
registered using this method will be adapted to the new | |||||||||||
This method is deprecated.
This method is deprecated and might be removed on future versions. Classes
registered using this method will be adapted to the new | |||||||||||
Adds a instance dependency mapping to the profile.
| |||||||||||
Adds a type dependency mapping to the profile.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new XadesSigner
based on the current state of the profile.
If any changes are made after this call, the previously returned signer will
not be afected. Other signers can be created, accumulating the profile changes.
XadesSigner
accordingly to this profileXadesProfileResolutionException | if the dependencies of the signer (direct and indirect) cannot be resolved |
---|
This method is deprecated.
This method is deprecated and might be removed on future versions. Classes
registered using this method will be adapted to the new AlgorithmsProviderEx
interface. AlgorithmsProvider
and AlgorithmsProviderEx
cannot be
registered simultaneously on the same profile.
This method is deprecated.
This method is deprecated and might be removed on future versions. Classes
registered using this method will be adapted to the new AlgorithmsProviderEx
interface. AlgorithmsProvider
and AlgorithmsProviderEx
cannot be
registered simultaneously on the same profile.
This method is deprecated.
This method is deprecated and might be removed on future versions. Classes
registered using this method will be adapted to the new BasicSignatureOptions
class. If a {@BasicSignatureOptions } instance is registered it will override
any registered BasicSignatureOptionsProvider
.
This method is deprecated.
This method is deprecated and might be removed on future versions. Classes
registered using this method will be adapted to the new BasicSignatureOptions
class. If a {@BasicSignatureOptions } instance is registered it will override
any registered BasicSignatureOptionsProvider
.
Adds a instance dependency mapping to the profile. When a dependency to
from
is found, the to
instance is used.
The other withNNNNNN
methods are convenient shortcuts for this one.
from | the dependency |
---|---|
to | the instance that resolves the dependency |
Adds a type dependency mapping to the profile. This is tipically done from an
interface to a type that implements that interface. When a dependency to
from
is found, the to
class is used. The to
class
may in turn have its own dependencies.
The other withNNNNNN
methods are convenient shortcuts for this one.
from | the dependency |
---|---|
to | the type that resolves the dependency |