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
public class IdentityParam extends IdentityTaV implements VerifiableElement
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
Constructors Constructor Description IdentityParam(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
ConfirmationInfo
getConfirmationInfo()
com.fasterxml.jackson.databind.JsonNode
getMetadata()
String
getRemoteIdp()
String
getTranslationProfile()
int
hashCode()
boolean
isConfirmed()
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)
String
toHumanReadableString()
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
com.fasterxml.jackson.databind.node.ObjectNode
toJsonBase()
String
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 Detail
-
IdentityParam
public IdentityParam(String type, String value, String remoteIdp, String translationProfile)
-
IdentityParam
public IdentityParam(com.fasterxml.jackson.databind.node.ObjectNode src)
-
IdentityParam
public IdentityParam(String type, com.fasterxml.jackson.databind.node.ObjectNode src)
-
-
Method Detail
-
isLocal
public boolean isLocal()
-
getTranslationProfile
public String getTranslationProfile()
-
getRemoteIdp
public String getRemoteIdp()
-
setTranslationProfile
public void setTranslationProfile(String translationProfile)
-
setRemoteIdp
public void setRemoteIdp(String remoteIdp)
-
getMetadata
public com.fasterxml.jackson.databind.JsonNode getMetadata()
-
setMetadata
public void setMetadata(com.fasterxml.jackson.databind.JsonNode metadata)
-
setConfirmationInfo
public void setConfirmationInfo(ConfirmationInfo confirmationData)
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
public ConfirmationInfo 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
public boolean equals(Object obj)
- Overrides:
equals
in classIdentityTaV
-
toString
public String toString()
- Overrides:
toString
in classIdentityTaV
- Returns:
- full String representation
-
toHumanReadableString
public String toHumanReadableString()
-
-