Class DirectSignerResponse
java.lang.Object
no.digipost.signature.client.direct.DirectSignerResponse
- All Implemented Interfaces:
WithSignerUrl
-
Nested Class Summary
Nested classes/interfaces inherited from interface no.digipost.signature.client.direct.WithSignerUrl
WithSignerUrl.JustSignerUrl -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectSignerResponsefromJaxb(no.digipost.signature.api.xml.XMLDirectSignerResponse signer) Get the custom identifier string for this signer.Get the personal identification number for this signer.booleanhasIdentifier(String identifier) Check if this signer is identified by the given identifier string, either as personal identification number or a custom identifier.booleanCheck if this signer is identified by a personal identification number.
-
Method Details
-
fromJaxb
public static DirectSignerResponse fromJaxb(no.digipost.signature.api.xml.XMLDirectSignerResponse signer) -
hasIdentifier
Check if this signer is identified by the given identifier string, either as personal identification number or a custom identifier.- Parameters:
identifier- either a personal identification number or a custom identifier- Returns:
trueif this signer has the given identifier,falseotherwise.
-
isIdentifiedByPersonalIdentificationNumber
public boolean isIdentifiedByPersonalIdentificationNumber()Check if this signer is identified by a personal identification number. If this method returnstrue,getPersonalIdentificationNumber()can safely be called. Likewise, if it returnsfalse, thengetCustomIdentifier()can be called.- Returns:
trueif this signer is identified by a personal identification number,falseotherwise.
-
getPersonalIdentificationNumber
Get the personal identification number for this signer.- Returns:
- the personal identification number
- Throws:
IllegalStateException- if this signer is not identified by personal identification number
-
getCustomIdentifier
Get the custom identifier string for this signer.- Returns:
- the custom identifier
- Throws:
IllegalStateException- if this signer is not identified by a custom identifier string
-
getSignerUrl
- Specified by:
getSignerUrlin interfaceWithSignerUrl- Returns:
- the URL for a specific signer of a signature job
-
getRedirectUrl
-