### SignService Configuration Example Source: https://docs.swedenconnect.se/signservice/configuration.html Shows a full configuration example for the Sweden Connect SignService. It includes client-id, trusted-certificates, protocol, authn (SAML), sign, cert, and audit settings. Comments note that protocol, sign, and cert have default beans and do not need to be specified. ```yaml client-id: https://eid2cssp.3xasecurity.com/sign trusted-certificates: - classpath:clients/signservice-testapp/eid2cssp.3xasecurity.com.crt # Note: protocol does not have to be given since a default bean exists. protocol: external: bean-name: signservice.DssProtocolHandler authn: saml: default-config-ref: authn.saml entity-id: https://localhost.swedenconnect.se/eid2cssp sp-paths: metadata-publishing-path: /sign/testapp/saml/metadata assertion-consumer-path: /sign/testapp/saml/sso preferred-binding: POST metadata: ui-info: display-names: - "en-Sweden Connect Localhost Signature Service Test" - "sv-Sweden Connect test för underskriftstjänster (localhost)" descriptions: - "en-Sweden Connect test application for signature services running on localhost" - "sv-Sweden Connect testapplikation för underskriftstjänster (localhost)" # Note: sign does not have to be given since a default bean exists. sign: external: bean-name: signservice.DefaultSignatureHandler # Note: cert does not have to be given since a default bean exists. cert: external: bean-name: signservice.BuiltInCa audit: file: name: "signservice-test-localhost-audit" file-name: ${SIGNSERVICE_HOME}/signservice-testapp/audit.log ``` -------------------------------- ### getInstance() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/config/PkiCredentialFactorySingleton.html Gets the PkiCredentialFactorySingleton instance. ```APIDOC ## getInstance() ### Description Gets the `PkiCredentialFactorySingleton` instance. ### Method `public static PkiCredentialFactorySingleton getInstance()` ### Returns - `PkiCredentialFactorySingleton` - the `PkiCredentialFactorySingleton` instance ``` -------------------------------- ### EngineContext.getContext() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/context/class-use/SignServiceContext.html Gets the wrapped SignServiceContext. ```APIDOC ## EngineContext.getContext() ### Description Gets the wrapped SignServiceContext. ### Method getContext ### Returns - **SignServiceContext** - The wrapped context. ``` -------------------------------- ### build() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/BasicCAServiceBuilder.html Builds the BasicCAService instance with the configured settings. ```APIDOC ## build() ### Description Builds the CA service. ### Method build() ### Returns - **BasicCAService** - the built CA service instance. ``` -------------------------------- ### getSignatureCertificateChain Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/protocol/SignResponseMessage.html Gets the signature certificate chain, starting with the issued signing certificate, and followed by any CA certificates that can be used to verify the previous certificate in the sequence, ending with a self-signed root certificate. ```APIDOC ## getSignatureCertificateChain ### Description Gets the signature certificate chain, starting with the issued signing certificate, and followed by any CA certificates that can be used to verify the previous certificate in the sequence, ending with a self-signed root certificate. ### Method List getSignatureCertificateChain() ### Returns - **List** - the signature certificate chain ``` -------------------------------- ### DefaultSignServiceEngine.setupContext(SignServiceContext) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/context/class-use/SignServiceContext.html Sets up an EngineContext based on the given SignServiceContext. ```APIDOC ## DefaultSignServiceEngine.setupContext(SignServiceContext) ### Description Given a SignServiceContext, the method sets up an EngineContext. ### Method setupContext ### Parameters - **signServiceContext** (SignServiceContext) - Required - The SignServiceContext to use. ### Returns - **EngineContext** - The created EngineContext. ``` -------------------------------- ### get(String id) method Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/storage/StorageContainer.html Methodology gets a random element of data storage. ```APIDOC ### Method `get` (Java) ### Description Gets a data element from the storage container. Note that expired elements are not returned. ### Parameters - `id` (String) - Required - The unique ID of the element to retrieve. ### Returns - The element as type `T`, or `null` if no matching element is available. ``` -------------------------------- ### get(String name) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/context/SignServiceContext.html Gets a named data element from the context. Returns null if no matching element is available. ```APIDOC ## get(String name) ### Description Gets a named data element from the context. Returns null if no matching element is available. ### Method `@Nullable T get(@Nonnull String name)` ### Type Parameters - **T** - the type of the element ### Parameters - **name** (String) - Required - the unique name of the element ### Returns - **T** - the element, or null if no matching element is available ``` -------------------------------- ### init() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/config/BeanReferenceHandlerConfiguration.html Validates that the configuration is properly set up after all properties have been assigned. ```APIDOC ## Method: init() ### Description Should be invoked after all properties have been assigned to ensure that the setup of the instance has been performed correctly. ### Method void init() ### Parameters None ### Returns void ``` -------------------------------- ### getSigningCertificateRequirements() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/protocol/SignRequestMessage.html Gets the requirements for how the generated signing certificate should be created. ```APIDOC ## getSigningCertificateRequirements() ### Description Gets the requirements for how the generated signing certificate should be created. ### Method `SigningCertificateRequirements getSigningCertificateRequirements()` ### Returns - `SigningCertificateRequirements` - signing certificate requirements ``` -------------------------------- ### get(String name, Class type) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/context/SignServiceContext.html Gets a named data element having a given type from the context. Throws ClassCastException if the element exists but is not of the given type. ```APIDOC ## get(String name, Class type) ### Description Gets a named data element having a given type from the context. Throws ClassCastException if the element exists but is not of the given type. ### Method `@Nullable T get(@Nonnull String name, @Nonnull Class type) throws ClassCastException` ### Type Parameters - **T** - the type of the element ### Parameters - **name** (String) - Required - the unique name of the element - **type** (Class) - Required - the type of the element ### Returns - **T** - the element, or null if no matching element is available ### Throws - **ClassCastException** - if the element exists but is not of the given type ``` -------------------------------- ### PSSPadding Constructor with MGF Digest, Salt, and Trailer Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Creates a PSSPadding instance with explicit salt, MGF hash algorithm, and trailer. ```APIDOC ## PSSPadding(int modulusBits, org.bouncycastle.crypto.Digest contentDigest, org.bouncycastle.crypto.Digest mgfDigest, byte[] salt, byte trailer) ### Description Constructor with explicit salt, MGF hash algorithm, and trailer. ### Parameters - **modulusBits** (int) - Required - The size of the RSA modulus in bits. - **contentDigest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the content. - **mgfDigest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the mask generation function. - **salt** (byte[]) - Required - The explicit salt value to use. - **trailer** (byte) - Required - The trailer byte to use. ### Usage ```java byte[] salt = new byte[32]; PSSPadding padding = new PSSPadding(2048, new SHA256Digest(), new SHA256Digest(), salt, PSSPadding.TRAILER_IMPLICIT); ``` ``` -------------------------------- ### getError() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/engine/SignServiceErrorException.html Gets the SignServiceError. ```APIDOC ## getError() ### Description Gets the `SignServiceError`. ### Returns - `SignServiceError` - the error ``` -------------------------------- ### init() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/client/impl/DefaultClientConfiguration.html Should be invoked after all properties have been assigned. ```APIDOC ## init() ### Description Should be invoked after all properties have been assigned. ### Method `public void init()` ### Throws - **IllegalArgumentException** - If the object has not been initialized correctly. ### Example ```java config.init(); ``` ``` -------------------------------- ### getPkiCredentialFactory() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/config/PkiCredentialFactorySingleton.html Gets the PkiCredentialFactory. ```APIDOC ## getPkiCredentialFactory() ### Description Gets the `PkiCredentialFactory`. ### Method `public PkiCredentialFactory getPkiCredentialFactory()` ### Returns - `PkiCredentialFactory` - the `PkiCredentialFactory` ``` -------------------------------- ### isIncludeIssuerSerial Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/tbsdata/AbstractTBSDataProcessor.html Gets the includeIssuerSerial setting. ```APIDOC ## Method: isIncludeIssuerSerial ### Description Gets the includeIssuerSerial setting. ### Signature `protected boolean isIncludeIssuerSerial()` ### Returns - **boolean** - The includeIssuerSerial setting. ``` -------------------------------- ### PSSPadding(int modulusBits, Digest contentDigest, Digest mgfDigest, byte[] salt, byte trailer) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Constructor with explicit salt, MGF hash algorithm and trailer. ```APIDOC ## PSSPadding(int modulusBits, Digest contentDigest, Digest mgfDigest, byte[] salt, byte trailer) ### Description Constructor with explicit salt, MGF hash algorithm and trailer. ### Parameters - `modulusBits` (int) - number of bits in RSA key modulus - `contentDigest` (org.bouncycastle.crypto.Digest) - the digest to use for content - `mgfDigest` (org.bouncycastle.crypto.Digest) - the digest to use for MGF - `salt` (byte[]) - salt value - `trailer` (byte) - the trailer byte to use ``` -------------------------------- ### PSSPadding Constructor with Trailer Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Creates a PSSPadding instance with a specified trailer byte. ```APIDOC ## PSSPadding(int modulusBits, org.bouncycastle.crypto.Digest digest, int sLen, byte trailer) ### Description Constructor. Creates a PSSPadding instance with the given modulus size, content digest, salt length, and trailer byte. ### Parameters - **modulusBits** (int) - Required - The size of the RSA modulus in bits. - **digest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the content. - **sLen** (int) - Required - The length of the salt in bytes. - **trailer** (byte) - Required - The trailer byte to use. ### Usage ```java PSSPadding padding = new PSSPadding(2048, new SHA256Digest(), 32, PSSPadding.TRAILER_IMPLICIT); ``` ``` -------------------------------- ### isStrictProcessing Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/tbsdata/AbstractTBSDataProcessor.html Gets the strictProcessing setting. ```APIDOC ## Method: isStrictProcessing ### Description Gets the strictProcessing setting. ### Signature `protected boolean isStrictProcessing()` ### Returns - **boolean** - The strict processing setting. ``` -------------------------------- ### PSSPadding Constructor with MGF Digest, Salt Length, and Trailer Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Creates a PSSPadding instance with a specified salt length, MGF hash, and trailer. ```APIDOC ## PSSPadding(int modulusBits, org.bouncycastle.crypto.Digest contentDigest, org.bouncycastle.crypto.Digest mgfDigest, int sLen, byte trailer) ### Description Constructor. Creates a PSSPadding instance with the given modulus size, content digest, MGF digest, salt length, and trailer byte. ### Parameters - **modulusBits** (int) - Required - The size of the RSA modulus in bits. - **contentDigest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the content. - **mgfDigest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the mask generation function. - **sLen** (int) - Required - The length of the salt in bytes. - **trailer** (byte) - Required - The trailer byte to use. ### Usage ```java PSSPadding padding = new PSSPadding(2048, new SHA256Digest(), new SHA256Digest(), 32, PSSPadding.TRAILER_IMPLICIT); ``` ``` -------------------------------- ### getTbsBytes() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/tbsdata/TBSProcessingData.html Gets the data to be signed. ```APIDOC ## getTbsBytes() ### Description Gets the data to be signed. ### Method Getter ### Signature `public byte[] getTbsBytes()` ### Returns - `byte[]` - data to be signed ``` -------------------------------- ### EngineContext.getSignRequest() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/protocol/class-use/SignRequestMessage.html Gets the SignRequestMessage from the context. ```APIDOC ## EngineContext.getSignRequest() ### Description Gets the `SignRequestMessage` from the context. ### Method `SignRequestMessage` ### Returns `SignRequestMessage` - The sign request message from the context. ``` -------------------------------- ### PSSPadding(int modulusBits, Digest contentDigest, Digest mgfDigest, int sLen, byte trailer) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Constructor for PSSPadding with separate digests and trailer. ```APIDOC ## PSSPadding(int modulusBits, Digest contentDigest, Digest mgfDigest, int sLen, byte trailer) ### Description Constructor for PSSPadding. ### Parameters - `modulusBits` (int) - number of bits in RSA key modulus - `contentDigest` (org.bouncycastle.crypto.Digest) - the digest to use for content - `mgfDigest` (org.bouncycastle.crypto.Digest) - the digest to use for MGF - `sLen` (int) - the length of the salt to use (in bytes) - `trailer` (byte) - the trailer byte to use ``` -------------------------------- ### getSignatureType() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/RequestedSignatureTask.html Gets the type of signature. ```APIDOC ## getSignatureType() ### Description Gets the type of signature. ### Method `SignatureType getSignatureType()` ### Returns - **SignatureType** - the signature type ``` -------------------------------- ### TBSDataProcessorConfiguration() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/config/TBSDataProcessorConfiguration.html Constructor for creating a new TBSDataProcessorConfiguration instance. This is the default constructor with no parameters. ```APIDOC ## TBSDataProcessorConfiguration() ### Description Creates a new instance of the TBSDataProcessorConfiguration class. ### Constructor `public TBSDataProcessorConfiguration()` ### Parameters None ### Returns A new TBSDataProcessorConfiguration object. ### Example ```java TBSDataProcessorConfiguration config = new TBSDataProcessorConfiguration(); ``` ``` -------------------------------- ### PSSPadding(int modulusBits, Digest digest, int sLen, byte trailer) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Constructor for PSSPadding with trailer byte. ```APIDOC ## PSSPadding(int modulusBits, Digest digest, int sLen, byte trailer) ### Description Constructor for PSSPadding. ### Parameters - `modulusBits` (int) - number of bits in RSA key modulus - `digest` (org.bouncycastle.crypto.Digest) - the digest to use. - `sLen` (int) - the length of the salt to use (in bytes) - `trailer` (byte) - the trailer byte to use ``` -------------------------------- ### build() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/BasicCAServiceBuilder.html Builds the CA service with the configured parameters. ```APIDOC ## build() ### Description Build the CA service. ### Method instance ### Signature @Nonnull public BasicCAService build() throws NoSuchAlgorithmException, CertificateException, CRLException ### Returns CA service ### Throws - **NoSuchAlgorithmException** - if the specified algorithm was not supported - **CRLException** - if the CA cannot publish a CRL - **CertificateException** - for certificate errors ``` -------------------------------- ### getSecond() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/types/Choice.html Gets the second choice. ```APIDOC ## Method: getSecond() ### Description Gets the second choice. ### Returns - **S** - The second choice or null ### Example ```java S second = choice.getSecond(); ``` ``` -------------------------------- ### DefaultHttpResponseAction(HttpPostAction post) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/http/DefaultHttpResponseAction.html Constructor setting up the HttpResponseAction with a post action. ```APIDOC ## DefaultHttpResponseAction(HttpPostAction post) ### Description Constructor setting up the HttpResponseAction with a post action. ### Parameters - **post** (HttpPostAction) - Required - The post action. ``` -------------------------------- ### getFirst() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/types/Choice.html Gets the first choice. ```APIDOC ## Method: getFirst() ### Description Gets the first choice. ### Returns - **F** - The first choice or null ### Example ```java F first = choice.getFirst(); ``` ``` -------------------------------- ### PSSPadding(int modulusBits, Digest digest, int sLen) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Basic constructor for PSSPadding with salt length. ```APIDOC ## PSSPadding(int modulusBits, Digest digest, int sLen) ### Description Basic constructor for PSSPadding. ### Parameters - `modulusBits` (int) - number of bits in RSA key modulus - `digest` (org.bouncycastle.crypto.Digest) - the digest to use. - `sLen` (int) - the length of the salt to use (in bytes) ``` -------------------------------- ### DefaultHttpBodyAction.builder() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/http/class-use/DefaultHttpBodyAction.HttpBodyActionBuilder.html Gets a DefaultHttpBodyAction.HttpBodyActionBuilder instance. ```APIDOC ## DefaultHttpBodyAction.builder() ### Description Gets a `DefaultHttpBodyAction.HttpBodyActionBuilder`. ### Method static DefaultHttpBodyAction.HttpBodyActionBuilder ### Endpoint DefaultHttpBodyAction.builder() ### Parameters None ### Returns - **DefaultHttpBodyAction.HttpBodyActionBuilder** - A builder instance for constructing a DefaultHttpBodyAction. ### Example ```java DefaultHttpBodyAction.HttpBodyActionBuilder builder = DefaultHttpBodyAction.builder(); ``` ``` -------------------------------- ### DefaultHttpRedirectAction.builder() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/http/class-use/DefaultHttpRedirectAction.HttpRedirectActionBuilder.html Gets a DefaultHttpRedirectAction.HttpRedirectActionBuilder instance. ```APIDOC ## DefaultHttpRedirectAction.builder() ### Description Gets a `DefaultHttpRedirectAction.HttpRedirectActionBuilder`. ### Method `static DefaultHttpRedirectAction.HttpRedirectActionBuilder builder()` ### Returns - `DefaultHttpRedirectAction.HttpRedirectActionBuilder` - A builder instance for constructing a `DefaultHttpRedirectAction`. ``` -------------------------------- ### PSSPadding(int modulusBits, Digest contentDigest, Digest mgfDigest, byte[] salt) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Constructor with explicit salt and MGF hash. ```APIDOC ## PSSPadding(int modulusBits, Digest contentDigest, Digest mgfDigest, byte[] salt) ### Description Constructor with explicit salt and MGF hash. ### Parameters - `modulusBits` (int) - number of bits in RSA key modulus - `contentDigest` (org.bouncycastle.crypto.Digest) - the digest to use for content - `mgfDigest` (org.bouncycastle.crypto.Digest) - the digest to use for MGF - `salt` (byte[]) - salt value ``` -------------------------------- ### SimpleKeyAndCertificateHandler.getResource(HttpUserRequest) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/http/class-use/HttpUserRequest.html Gets an HTTP resource based on the provided HttpUserRequest. ```APIDOC ## GET getResource(HttpUserRequest) ### Description Gets an HTTP resource. ### Method GET ### Endpoint SimpleKeyAndCertificateHandler.getResource(HttpUserRequest) ### Parameters #### Path Parameters - **httpRequest** (HttpUserRequest) - Required - The HTTP user request. ### Response #### Success Response (200) - **HttpBodyAction** - The HTTP body action. #### Response Example ```json { "type": "HttpBodyAction" } ``` ``` -------------------------------- ### PSSPadding(int modulusBits, Digest contentDigest, Digest mgfDigest, int sLen) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Constructor for PSSPadding with separate content and MGF digests. ```APIDOC ## PSSPadding(int modulusBits, Digest contentDigest, Digest mgfDigest, int sLen) ### Description Constructor for PSSPadding. ### Parameters - `modulusBits` (int) - number of bits in RSA key modulus - `contentDigest` (org.bouncycastle.crypto.Digest) - the digest to use for content - `mgfDigest` (org.bouncycastle.crypto.Digest) - the digest to use for MGF - `sLen` (int) - the length of the salt to use (in bytes) ``` -------------------------------- ### getValues() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/attribute/IdentityAttribute.html Gets all attribute values. ```APIDOC ## getValues() ### Description Gets all attribute values. ### Method `List getValues()` ### Returns - `List` - attribute values ``` -------------------------------- ### getInstance(PkiCredential, String, String, String) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/BasicCAServiceBuilder.html Gets an instance of the builder using the default NO data storage repository, with a file location for the CRL. ```APIDOC ## getInstance(PkiCredential, String, String, String) ### Description Gets an instance of builder using the default NO data storage repository. ### Method static ### Signature @Nonnull public static BasicCAServiceBuilder getInstance(@Nonnull PkiCredential caCredential, @Nonnull String crlDpUrl, @Nonnull String algorithm, @Nonnull String crlFileLocation) throws IOException ### Parameters - **caCredential** (PkiCredential) - Required - the CA credential (private key and certificate chain) - **crlDpUrl** (String) - Required - the URL where the latest CRL published by this CA will be available - **algorithm** (String) - Required - the signature algorithm of this CA - **crlFileLocation** (String) - Required - the file location that will be used to write the latest CRL published by this CA ### Returns instance of this CA service builder ### Throws - **IOException** - error getting instance ``` -------------------------------- ### PSSPadding Constructor with Salt Length Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Creates a PSSPadding instance with a specified salt length. ```APIDOC ## PSSPadding(int modulusBits, org.bouncycastle.crypto.Digest digest, int sLen) ### Description Basic constructor. Creates a PSSPadding instance with the given modulus size, content digest, and salt length. ### Parameters - **modulusBits** (int) - Required - The size of the RSA modulus in bits. - **digest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the content. - **sLen** (int) - Required - The length of the salt in bytes. ### Usage ```java PSSPadding padding = new PSSPadding(2048, new SHA256Digest(), 32); ``` ``` -------------------------------- ### getAttributeMapper Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/base/AbstractKeyAndCertificateHandler.html Gets the attribute mapper. ```APIDOC ## getAttributeMapper ### Description Gets the attribute mapper. ### Method getAttributeMapper ### Returns AttributeMapper - the attribute mapper ``` -------------------------------- ### BasicCAServiceBuilder.getInstance(PkiCredential, String, String, String) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/class-use/BasicCAServiceBuilder.html Gets an instance of builder using the default NO data storage repository. ```APIDOC ## BasicCAServiceBuilder.getInstance(PkiCredential, String, String, String) ### Description Gets an instance of builder using the default NO data storage repository. ### Method `static BasicCAServiceBuilder getInstance(PkiCredential caCredential, String crlDpUrl, String algorithm, String crlFileLocation)` ### Parameters - **caCredential** (PkiCredential) - Required - The CA credential. - **crlDpUrl** (String) - Required - The CRL distribution point URL. - **algorithm** (String) - Required - The algorithm. - **crlFileLocation** (String) - Required - The CRL file location. ### Returns - **BasicCAServiceBuilder** - A new builder instance. ``` -------------------------------- ### getResource Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/saml/AbstractSamlAuthenticationHandler.html Gets an HTTP resource. ```APIDOC ## getResource ### Description Gets an HTTP resource. ### Method HttpBodyAction ### Parameters - **httpRequest** (HttpUserRequest) - Required - The HTTP user request. ### Return Type HttpBodyAction ``` -------------------------------- ### Constructor: BasicCAService(PkiCredential, CARepository, CertificateIssuerModel, CRLIssuerModel) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/BasicCAService.html Constructs a BasicCAService instance with the provided CA credential, repository, issuer model, and CRL issuer model. ```APIDOC ## Constructor: BasicCAService(PkiCredential, CARepository, CertificateIssuerModel, CRLIssuerModel) ### Description Constructs a BasicCAService instance with the provided CA credential, repository, issuer model, and CRL issuer model. ### Parameters - **caCredential** (PkiCredential) - Required - The CA credential. - **caRepository** (se.swedenconnect.ca.engine.ca.repository.CARepository) - Required - The CA repository. - **issuerModel** (se.swedenconnect.ca.engine.ca.issuer.CertificateIssuerModel) - Required - The certificate issuer model. - **crlIssuerModel** (se.swedenconnect.ca.engine.revocation.crl.CRLIssuerModel) - Required - The CRL issuer model. ``` -------------------------------- ### getSADValidator Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/saml/SwedenConnectSamlAuthenticationHandler.html Gets the SADParser.SADValidator for further configuration. ```APIDOC ## getSADValidator ### Description Gets the `SADParser.SADValidator` for further configuration. ### Method public se.swedenconnect.opensaml.sweid.saml2.signservice.SADParser.SADValidator ### Signature `public se.swedenconnect.opensaml.sweid.saml2.signservice.SADParser.SADValidator getSADValidator()` ### Returns The `SADParser.SADValidator` ``` -------------------------------- ### PSSPadding Constructor with MGF Digest and Salt Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Creates a PSSPadding instance with explicit salt and MGF hash. ```APIDOC ## PSSPadding(int modulusBits, org.bouncycastle.crypto.Digest contentDigest, org.bouncycastle.crypto.Digest mgfDigest, byte[] salt) ### Description Constructor with explicit salt and MGF hash. The salt length is determined by the length of the provided salt array. ### Parameters - **modulusBits** (int) - Required - The size of the RSA modulus in bits. - **contentDigest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the content. - **mgfDigest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the mask generation function. - **salt** (byte[]) - Required - The explicit salt value to use. ### Usage ```java byte[] salt = new byte[32]; PSSPadding padding = new PSSPadding(2048, new SHA256Digest(), new SHA256Digest(), salt); ``` ``` -------------------------------- ### getHandlerType() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/mock/MockedAuthenticationHandlerFactory.html Gets the handler type. ```APIDOC ## getHandlerType() ### Description Gets the handler type. ### Method protected Class getHandlerType() ### Returns - **Class** - The handler type. ``` -------------------------------- ### EngineContext.getIdentityAssertion() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/class-use/IdentityAssertion.html Gets the IdentityAssertion from the context. ```APIDOC ## EngineContext.getIdentityAssertion() ### Description Gets the `IdentityAssertion` from the context. ### Method `IdentityAssertion` getIdentityAssertion() ### Returns - **IdentityAssertion** - The identity assertion from the context. ``` -------------------------------- ### DefaultClientConfiguration(String clientId) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/client/impl/DefaultClientConfiguration.html Constructor that accepts a client ID. ```APIDOC ## DefaultClientConfiguration(String clientId) ### Description Constructor that initializes the configuration with a client ID. ### Constructor `DefaultClientConfiguration(String clientId)` ### Parameters - **clientId** (String) - Required - The client ID. ### Example ```java DefaultClientConfiguration config = new DefaultClientConfiguration("client123"); ``` ``` -------------------------------- ### getEncodedAssertion() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/IdentityAssertion.html Gets the encoding of the assertion. ```APIDOC ## getEncodedAssertion() ### Description Gets the encoding of the assertion. ### Method `@Nonnull byte[] getEncodedAssertion()` ### Returns - **byte[]** - the encoding of the assertion ``` -------------------------------- ### isEmpty() - Check if empty Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/config/PkiCredentialConfigurationProperties.html Checks whether this configuration is empty, and whether that no settings have been applied. ```APIDOC ## isEmpty() ### Description Predicate that returns `true` if the object is 'empty', meaning no settings have been applied. ### Method `public boolean isEmpty()` ### Signature `public boolean isEmpty()` ### Parameters None. ### Return Value - `boolean` - `true` if empty, `false` otherwise. ### Deprecation - **@Deprecated**(since="1.2.0", forRemoval=true) ### Example ```java boolean empty = properties.isEmpty(); ``` ``` -------------------------------- ### getIdentityAttributes() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/IdentityAssertion.html Gets the identity attributes. ```APIDOC ## getIdentityAttributes() ### Description Gets the identity attributes. ### Method `@Nonnull List> getIdentityAttributes()` ### Returns - **List>** - the identity attributes (may be an empty list) ``` -------------------------------- ### BasicCAServiceBuilder.certificateStartOffset(Duration) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/class-use/BasicCAServiceBuilder.html Assigns the certificate start offset time and returns the builder for chaining. ```APIDOC ## BasicCAServiceBuilder.certificateStartOffset(Duration) ### Description Assigns the certificate start offset time. ### Method `BasicCAServiceBuilder certificateStartOffset(Duration certificateStartOffset)` ### Parameters - **certificateStartOffset** (Duration) - Required - The certificate start offset time. ### Returns - **BasicCAServiceBuilder** - This builder instance for chaining. ``` -------------------------------- ### PSSPadding Constructor with MGF Digest and Salt Length Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Creates a PSSPadding instance with a specified salt length and MGF hash. ```APIDOC ## PSSPadding(int modulusBits, org.bouncycastle.crypto.Digest contentDigest, org.bouncycastle.crypto.Digest mgfDigest, int sLen) ### Description Constructor. Creates a PSSPadding instance with the given modulus size, content digest, MGF digest, and salt length. ### Parameters - **modulusBits** (int) - Required - The size of the RSA modulus in bits. - **contentDigest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the content. - **mgfDigest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the mask generation function. - **sLen** (int) - Required - The length of the salt in bytes. ### Usage ```java PSSPadding padding = new PSSPadding(2048, new SHA256Digest(), new SHA256Digest(), 32); ``` ``` -------------------------------- ### getIdentifier() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/IdentityAssertion.html Gets the identifier for the assertion. ```APIDOC ## getIdentifier() ### Description Gets the identifier for the assertion. ### Method `@Nonnull String getIdentifier()` ### Returns - **String** - the assertion ID ``` -------------------------------- ### getSupportedProcessingRules Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/tbsdata/AbstractTBSDataProcessor.html Gets the supported processing rules. ```APIDOC ## Method: getSupportedProcessingRules ### Description Gets the supported processing rules. ### Signature `@Nonnull protected List getSupportedProcessingRules()` ### Returns - **List** - The supported processing rules. ``` -------------------------------- ### PSSPadding Constructor with Explicit Salt Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Creates a PSSPadding instance with an explicit salt value. ```APIDOC ## PSSPadding(int modulusBits, org.bouncycastle.crypto.Digest digest, byte[] salt) ### Description Constructor with explicit salt value. The salt length is determined by the length of the provided salt array. ### Parameters - **modulusBits** (int) - Required - The size of the RSA modulus in bits. - **digest** (org.bouncycastle.crypto.Digest) - Required - The digest (hash function) to use for the content. - **salt** (byte[]) - Required - The explicit salt value to use. ### Usage ```java byte[] salt = new byte[32]; PSSPadding padding = new PSSPadding(2048, new SHA256Digest(), salt); ``` ``` -------------------------------- ### getSignedCertAttr Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/tbsdata/PDFTBSDataProcessor.html Get signer certificate attribute. ```APIDOC ## getSignedCertAttr ### Description Get signer certificate attribute. ### Method getSignedCertAttr (static) ### Parameters - `digestAlgo` (MessageDigestAlgorithm) - Required - the digest algorithm used to hash the certificate - `certificate` (X509Certificate) - Required - the certificate - `includeIssuerSerial` (boolean) - Required - true if the signing certificate attribute should include IssuerSerial data ### Returns - CMS Signed certificate attribute (V1 if digest is SHA-1 else V2) ### Throws - `NoSuchAlgorithmException` - algorithm is not supported - `IOException` - error in parsed data or using the selected digest method - `CertificateException` - error in provided certificate ``` -------------------------------- ### PSSPadding(int modulusBits, Digest digest) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/signer/crypto/PSSPadding.html Basic constructor for PSSPadding. ```APIDOC ## PSSPadding(int modulusBits, Digest digest) ### Description Basic constructor for PSSPadding. ### Parameters - `modulusBits` (int) - number of bits in RSA key modulus - `digest` (org.bouncycastle.crypto.Digest) - the digest to use. ``` -------------------------------- ### BasicCAServiceBuilder.getInstance(PkiCredential, String, String, CARepository) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/class-use/BasicCAServiceBuilder.html Gets an instance of the builder with a custom CA repository. ```APIDOC ## BasicCAServiceBuilder.getInstance(PkiCredential, String, String, CARepository) ### Description Gets an instance of the builder with a custom CA repository. ### Method `static BasicCAServiceBuilder getInstance(PkiCredential caCredential, String crlDpUrl, String algorithm, se.swedenconnect.ca.engine.ca.repository.CARepository caRepository)` ### Parameters - **caCredential** (PkiCredential) - Required - The CA credential. - **crlDpUrl** (String) - Required - The CRL distribution point URL. - **algorithm** (String) - Required - The algorithm. - **caRepository** (CARepository) - Required - The CA repository. ### Returns - **BasicCAServiceBuilder** - A new builder instance. ``` -------------------------------- ### getProcessingRules() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/tbsdata/TBSProcessingData.html Gets the processing rules if set. ```APIDOC ## getProcessingRules() ### Description Gets the processing rules if set. ### Method Getter ### Signature `public String getProcessingRules()` ### Returns - `String` - data processing rules URI if set or `null` ``` -------------------------------- ### RequestedAttributeConfig() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/saml/config/MetadataConfiguration.RequestedAttributeConfig.html Constructor for creating a new RequestedAttributeConfig instance. ```APIDOC ## RequestedAttributeConfig() ### Description Constructs a new RequestedAttributeConfig instance. ### Method Constructor ### Signature `public RequestedAttributeConfig()` ### Parameters None ### Returns A new RequestedAttributeConfig object. ### Throws None ### Example ```java MetadataConfiguration.RequestedAttributeConfig config = new MetadataConfiguration.RequestedAttributeConfig(); ``` ``` -------------------------------- ### DefaultRequestedSignatureTask.getAdESObject() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/class-use/AdESObject.html Gets the AdES object requested/produced. ```APIDOC ## DefaultRequestedSignatureTask.getAdESObject() ### Description Gets the AdES object requested/produced. ### Method `AdESObject getAdESObject()` ### Returns - **AdESObject** - The AdES object requested/produced. ``` -------------------------------- ### FileAuditLogger(String logFile) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/audit/file/FileAuditLogger.html Constructor setting up the file audit logger with the target file. Throws IOException if the file is invalid or cannot be created. ```APIDOC ## FileAuditLogger(String logFile) ### Description Constructor setting up the file audit logger with the target file. ### Parameters - **logFile** (String) - Required - The log file including its path ### Throws - **IOException** - if the supplied file is not a valid file, or if it is not possible to create the file ``` -------------------------------- ### RequestedSignatureTask.getAdESObject() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/class-use/AdESObject.html Gets the AdES object requested/produced. ```APIDOC ## RequestedSignatureTask.getAdESObject() ### Description Gets the AdES object requested/produced. ### Method `AdESObject getAdESObject()` ### Returns - **AdESObject** - The AdES object requested/produced. ``` -------------------------------- ### getEngines() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/config/SignServiceConfigurationProperties.html Returns a list of engine configurations. ```APIDOC ## getEngines() ### Description Returns a list of engine configurations. ### Method `List getEngines()` ### Returns - **List** - the SignService engine instances ``` -------------------------------- ### getTbsData() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/RequestedSignatureTask.html Gets the raw to-be-signed data. ```APIDOC ## getTbsData() ### Description Gets the raw "to-be-signed" data. ### Method `byte[] getTbsData()` ### Returns - **byte[]** - to-be-signed data ``` -------------------------------- ### getInstance(PkiCredential caCredential, String crlDpUrl, String algorithm, String crlFileLocation) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/BasicCAServiceBuilder.html Gets an instance of builder using the default NO data storage repository. ```APIDOC ## getInstance(PkiCredential caCredential, String crlDpUrl, String algorithm, String crlFileLocation) ### Description Gets an instance of builder using the default NO data storage repository. ### Method getInstance(PkiCredential, String, String, String) ### Parameters - **caCredential** (PkiCredential) - The CA credential. - **crlDpUrl** (String) - The CRL distribution point URL. - **algorithm** (String) - The algorithm. - **crlFileLocation** (String) - The CRL file location. ### Returns - **BasicCAServiceBuilder** - a new builder instance. ``` -------------------------------- ### getAdESObject() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/RequestedSignatureTask.html Gets the AdES object requested/produced. ```APIDOC ## getAdESObject() ### Description Gets the AdES object requested/produced. ### Method `AdESObject getAdESObject()` ### Returns - **AdESObject** - the AdES object, or null if no AdES object is requested/produced ``` -------------------------------- ### getAdESType() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/signature/RequestedSignatureTask.html Gets the AdES type requested/produced. ```APIDOC ## getAdESType() ### Description Gets the AdES type requested/produced. ### Method `AdESType getAdESType()` ### Returns - **AdESType** - the AdES type, or null if none is requested/produced ``` -------------------------------- ### BasicCAService Constructor Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/certificate/simple/ca/BasicCAService.html Constructor for the BasicCAService class. ```APIDOC ## BasicCAService Constructor ### Description Creates a new BasicCAService instance with the provided CA credential, repository, issuer model, and optional CRL issuer model. ### Signature public BasicCAService(@Nonnull PkiCredential caCredential, @Nonnull se.swedenconnect.ca.engine.ca.repository.CARepository caRepository, @Nonnull se.swedenconnect.ca.engine.ca.issuer.CertificateIssuerModel issuerModel, @Nullable se.swedenconnect.ca.engine.revocation.crl.CRLIssuerModel crlIssuerModel) throws NoSuchAlgorithmException, CertificateException, CRLException ### Parameters - **caCredential** (PkiCredential) - Required - The CA credential (private key and certificates) - **caRepository** (CARepository) - Required - Repository for storing issued certificates - **issuerModel** (CertificateIssuerModel) - Required - Model for issuing certificates - **crlIssuerModel** (CRLIssuerModel) - Optional - Model for publishing CRLs ### Throws - **NoSuchAlgorithmException** - If the algorithm is not supported - **CertificateException** - For certificate errors - **CRLException** - If a CRL cannot be published ``` -------------------------------- ### DefaultHttpResponseAction(HttpRedirectAction redirect) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/http/DefaultHttpResponseAction.html Constructor setting up the HttpResponseAction with a redirect action. ```APIDOC ## DefaultHttpResponseAction(HttpRedirectAction redirect) ### Description Constructor setting up the HttpResponseAction with a redirect action. ### Parameters - **redirect** (HttpRedirectAction) - Required - The redirect action. ``` -------------------------------- ### getSignerAuthnInfo Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/protocol/SignResponseMessage.html Gets the signer authentication information. ```APIDOC ## getSignerAuthnInfo ### Description Gets the signer authentication information. ### Method SignerAuthnInfo getSignerAuthnInfo() ### Returns - **SignerAuthnInfo** - the authentication information ``` -------------------------------- ### DefaultSignServiceEngine.initAuthentication(HttpUserRequest, SignRequestMessage, EngineContext) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/http/class-use/HttpUserRequest.html Initializes the user authentication phase. ```APIDOC ## POST initAuthentication(HttpUserRequest, SignRequestMessage, EngineContext) ### Description Initializes the user authentication phase. ### Method POST ### Endpoint DefaultSignServiceEngine.initAuthentication(HttpUserRequest, SignRequestMessage, EngineContext) ### Parameters #### Path Parameters - **httpRequest** (HttpUserRequest) - Required - The HTTP user request. - **signRequest** (SignRequestMessage) - Required - The sign request message. - **context** (EngineContext) - Required - The engine context. ### Response #### Success Response (200) - **AuthenticationResultChoice** - The authentication result choice. #### Response Example ```json { "type": "AuthenticationResultChoice" } ``` ``` -------------------------------- ### getName Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/config/HandlerConfiguration.html Gets the configured handler name. ```APIDOC ## getName ### Description Gets the configured handler name. ### Method N/A (Java method) ### Signature @Nullable String getName() ### Parameters None ### Returns - **String** - the handler name, or null if none has been assigned ``` -------------------------------- ### getIssuedAt() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/protocol/SignRequestMessage.html Gets the issuance instant for the message. ```APIDOC ## getIssuedAt() ### Description Gets the issuance instant for the message. ### Method `Instant getIssuedAt()` ### Returns - `Instant` - the issuance instant ``` -------------------------------- ### createResponseProcessor (with BeanLoader) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/saml/config/SamlAuthenticationHandlerFactory.html Based on the SAML configuration and the metadata provider a ResponseProcessor is created. ```APIDOC ### createResponseProcessor (with BeanLoader) #### Description Based on the SAML configuration and the metadata provider a ResponseProcessor is created. #### Parameters - `config` (SamlAuthenticationHandlerConfiguration) - Required - the SAML configuration - `beanLoader` (BeanLoader) - Optional - the bean loader - `metadataProvider` (MetadataProvider) - Required - the metadata provider #### Returns - a ResponseProcessor ``` -------------------------------- ### InstantSamlIdentityAttribute(String identifier, String friendlyName, List values) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/attribute/saml/impl/InstantSamlIdentityAttribute.html Constructor for a multi-valued attribute. Initializes a new InstantSamlIdentityAttribute with the given identifier, friendly name, and a list of Instant values. ```APIDOC ## InstantSamlIdentityAttribute(String identifier, String friendlyName, List values) ### Description Constructor for a multi-valued attribute. Creates a new InstantSamlIdentityAttribute instance with the specified identifier, friendly name, and list of values. ### Parameters - **identifier** (String) - Required - The attribute identifier (name). - **friendlyName** (String) - Optional - The attribute friendly name. - **values** (List) - Required - The attribute values. ### Example ```java List values = Arrays.asList(Instant.now(), Instant.now().plusSeconds(60)); InstantSamlIdentityAttribute attr = new InstantSamlIdentityAttribute("urn:example:attribute", "friendlyName", values); ``` ``` -------------------------------- ### getMessage() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/protocol/SignResponseResult.html Gets the message of the result object. ```APIDOC ## getMessage() ### Description Gets the message of the result object. ### Method getMessage() ### Returns - **String** - the message ``` -------------------------------- ### AbstractKeyAndCertificateHandler.generateSigningCredential() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/authn/class-use/IdentityAssertion.html Generates a signing key and issues a signing certificate given the supplied parameters. ```APIDOC ## AbstractKeyAndCertificateHandler.generateSigningCredential() ### Description Generates a signing (private) key and issues a signing certificate given the supplied parameters. ### Method `PkiCredential` generateSigningCredential(SignRequestMessage signRequest, IdentityAssertion assertion, SignServiceContext context) ### Parameters - **signRequest** (SignRequestMessage) - The sign request message. - **assertion** (IdentityAssertion) - The identity assertion. - **context** (SignServiceContext) - The SignService context. ### Returns - **PkiCredential** - The generated signing credential. ``` -------------------------------- ### getMinorErrorCode() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/protocol/SignResponseResult.html Gets a minor error code. ```APIDOC ## getMinorErrorCode() ### Description Gets a minor error code. ### Method getMinorErrorCode() ### Returns - **String** - the minor error code, or `null` if none is available ``` -------------------------------- ### DefaultHttpResponseAction(HttpBodyAction body) Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/core/http/DefaultHttpResponseAction.html Constructor setting up the HttpResponseAction with a response body action. ```APIDOC ## DefaultHttpResponseAction(HttpBodyAction body) ### Description Constructor setting up the HttpResponseAction with a response body action. ### Parameters - **body** (HttpBodyAction) - Required - The response body action. ``` -------------------------------- ### getErrorCode() Source: https://docs.swedenconnect.se/signservice/apidocs/se/swedenconnect/signservice/protocol/SignResponseResult.html Gets the (major) error code. ```APIDOC ## getErrorCode() ### Description Gets the (major) error code. ### Method getErrorCode() ### Returns - **String** - the error code ```