public class DirectSignerResponse extends Object implements WithSignerUrl
WithSignerUrl.JustSignerUrl| Modifier and Type | Method and Description |
|---|---|
static DirectSignerResponse |
fromJaxb(no.digipost.signature.api.xml.XMLDirectSignerResponse signer) |
String |
getCustomIdentifier()
Get the custom identifier string for this signer.
|
String |
getPersonalIdentificationNumber()
Get the personal identification number for this signer.
|
URI |
getRedirectUrl() |
URI |
getSignerUrl() |
boolean |
hasIdentifier(String identifier)
Check if this signer is identified by the given identifier string, either
as personal identification number or a custom identifier.
|
boolean |
isIdentifiedByPersonalIdentificationNumber()
Check if this signer is identified by a personal identification number.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic static DirectSignerResponse fromJaxb(no.digipost.signature.api.xml.XMLDirectSignerResponse signer)
public boolean hasIdentifier(String identifier)
identifier - either a personal identification number or a custom identifiertrue if this signer has the given identifier, false otherwise.public boolean isIdentifiedByPersonalIdentificationNumber()
true, getPersonalIdentificationNumber() can
safely be called. Likewise, if it returns false, then
getCustomIdentifier() can be called.true if this signer is identified by a personal identification number,
false otherwise.public String getPersonalIdentificationNumber()
IllegalStateException - if this signer is not identified by personal identification numberpublic String getCustomIdentifier()
IllegalStateException - if this signer is not identified by a custom identifier stringpublic URI getSignerUrl()
getSignerUrl in interface WithSignerUrlpublic URI getRedirectUrl()
Copyright © 2019 Digipost. All rights reserved.