Class AuthorialSender
- java.lang.Object
-
- no.digipost.api.client.representations.sender.AuthorialSender
-
public final class AuthorialSender extends Object
The authorial sender of a message, i.e. what the receiver sees as the sender. It is resolved based on the broker ID, and the optional presence of either asender-ID
orsender organization
. If neither of those are present, the broker ID is used as the authorial sender.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthorialSender.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
SenderId
getAccountId()
SenderOrganization
getOrganization()
int
hashCode()
boolean
is(AuthorialSender.Type type)
static AuthorialSender
resolve(BrokerId brokerId, MayHaveSender mayHaveAuthorialSender)
String
toString()
-
-
-
Method Detail
-
resolve
public static AuthorialSender resolve(BrokerId brokerId, MayHaveSender mayHaveAuthorialSender)
-
is
public boolean is(AuthorialSender.Type type)
-
getAccountId
public SenderId getAccountId()
-
getOrganization
public SenderOrganization getOrganization()
-
-