Package pl.edu.icm.unity.types.basic
Class IdentityParam
java.lang.Object
pl.edu.icm.unity.types.basic.IdentityTaV
pl.edu.icm.unity.types.basic.IdentityParam
- All Implemented Interfaces:
VerifiableElement
- Direct Known Subclasses:
Identity
This class is useful when creating a new Identity.
- Author:
- K. Benedyczak
-
Field Summary
Fields inherited from class pl.edu.icm.unity.types.basic.IdentityTaV
realm, target, value
-
Constructor Summary
ConstructorDescriptionIdentityParam
(com.fasterxml.jackson.databind.node.ObjectNode src) IdentityParam
(String type, com.fasterxml.jackson.databind.node.ObjectNode src) IdentityParam
(String type, String value) IdentityParam
(String type, String value, String remoteIdp, String translationProfile) -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.fasterxml.jackson.databind.JsonNode
int
hashCode()
boolean
Shorter version of getConfirmationInfo().isConfirmed(), also checking if the CI is not null.boolean
isLocal()
void
setConfirmationInfo
(ConfirmationInfo confirmationData) Sets confirmation status of the identity.void
setMetadata
(com.fasterxml.jackson.databind.JsonNode metadata) void
setRemoteIdp
(String remoteIdp) void
setTranslationProfile
(String translationProfile) com.fasterxml.jackson.databind.node.ObjectNode
toJson()
com.fasterxml.jackson.databind.node.ObjectNode
toString()
Methods inherited from class pl.edu.icm.unity.types.basic.IdentityTaV
getRealm, getTarget, getTypeId, getValue, setRealm, setTarget, setTypeId, setValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface pl.edu.icm.unity.types.confirmation.VerifiableElement
getValue
-
Constructor Details
-
IdentityParam
-
IdentityParam
-
IdentityParam
public IdentityParam(com.fasterxml.jackson.databind.node.ObjectNode src) -
IdentityParam
-
-
Method Details
-
isLocal
public boolean isLocal() -
getTranslationProfile
-
getRemoteIdp
-
setTranslationProfile
-
setRemoteIdp
-
getMetadata
public com.fasterxml.jackson.databind.JsonNode getMetadata() -
setMetadata
public void setMetadata(com.fasterxml.jackson.databind.JsonNode metadata) -
setConfirmationInfo
Sets confirmation status of the identity. For identity types which does not support confirmations this setting is ignored. For other the confirmation status is handled automatically in the most cases.- Specified by:
setConfirmationInfo
in interfaceVerifiableElement
-
getConfirmationInfo
- Specified by:
getConfirmationInfo
in interfaceVerifiableElement
-
isConfirmed
public boolean isConfirmed()Description copied from interface:VerifiableElement
Shorter version of getConfirmationInfo().isConfirmed(), also checking if the CI is not null.- Specified by:
isConfirmed
in interfaceVerifiableElement
- Returns:
- true if element is properly verified
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()- Overrides:
toJson
in classIdentityTaV
-
toJsonBase
public com.fasterxml.jackson.databind.node.ObjectNode toJsonBase()- Overrides:
toJsonBase
in classIdentityTaV
-
hashCode
public int hashCode()- Overrides:
hashCode
in classIdentityTaV
-
equals
- Overrides:
equals
in classIdentityTaV
-
toString
- Overrides:
toString
in classIdentityTaV
- Returns:
- full String representation
-
toHumanReadableString
-