Class DNState
- java.lang.Object
-
- org.cilogon.oauth2.servlet.storage.user.DNState
-
public class DNState extends Object
Created by Jeff Gaynor
on 3/20/20 at 11:54 AM
-
-
Field Summary
Fields Modifier and Type Field Description int
DN_STATE_CHANGED
static int
DN_STATE_DISPLAY_NAME_INDEX
static int
DN_STATE_EMAIL_INDEX
static int
DN_STATE_FIRST_NAME_INDEX
static int
DN_STATE_IDP_NAME
static int
DN_STATE_LAST_NAME_INDEX
static int
DN_STATE_LENGTH
static int
DN_STATE_NULL
int
DN_STATE_SET
int
valid_All
int
valid_dName
Valid DNState to compute FN if email, idpName and user display name are set.int
valid_flName
Valid DNState to compute FN if email, idpName first name and last name are set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allZero()
boolean
canGetDN()
BitSet
getBitSet()
String[]
getDNNames(User user)
int
getStateValue()
boolean
hasDisplayName()
boolean
hasEmail()
boolean
hasFirstName()
boolean
hasIDPName()
boolean
hasLastName()
boolean
isUpdated()
boolean
keepSerialString(DNState updatedState)
This determines if the updated state and this state require a new serial string be issued.void
setDisplayName(boolean ok)
void
setEmail(boolean ok)
void
setFirstName(boolean ok)
void
setIDPName(boolean ok)
protected void
setIt(int index, boolean ok)
void
setLastName(boolean ok)
void
setStateValue(int v)
Set the value of this to the give integer
-
-
-
Field Detail
-
DN_STATE_LENGTH
public static int DN_STATE_LENGTH
-
DN_STATE_NULL
public static int DN_STATE_NULL
-
DN_STATE_SET
public int DN_STATE_SET
-
DN_STATE_CHANGED
public int DN_STATE_CHANGED
-
DN_STATE_EMAIL_INDEX
public static int DN_STATE_EMAIL_INDEX
-
DN_STATE_IDP_NAME
public static int DN_STATE_IDP_NAME
-
DN_STATE_DISPLAY_NAME_INDEX
public static int DN_STATE_DISPLAY_NAME_INDEX
-
DN_STATE_FIRST_NAME_INDEX
public static int DN_STATE_FIRST_NAME_INDEX
-
DN_STATE_LAST_NAME_INDEX
public static int DN_STATE_LAST_NAME_INDEX
-
valid_dName
public int valid_dName
Valid DNState to compute FN if email, idpName and user display name are set.
-
valid_flName
public int valid_flName
Valid DNState to compute FN if email, idpName first name and last name are set.
-
valid_All
public int valid_All
-
-
Constructor Detail
-
DNState
public DNState()
-
DNState
public DNState(BitSet bitSet)
-
DNState
public DNState(int value)
-
-
Method Detail
-
allZero
public boolean allZero()
-
isUpdated
public boolean isUpdated()
-
keepSerialString
public boolean keepSerialString(DNState updatedState)
This determines if the updated state and this state require a new serial string be issued. This DN State is what is stored for the user. The argument is created from checking the updates to the user.- Parameters:
updatedState
-- Returns:
-
getStateValue
public int getStateValue()
-
setStateValue
public void setStateValue(int v)
Set the value of this to the give integer- Parameters:
v
-
-
setIt
protected void setIt(int index, boolean ok)
-
setIDPName
public void setIDPName(boolean ok)
-
hasIDPName
public boolean hasIDPName()
-
setEmail
public void setEmail(boolean ok)
-
hasEmail
public boolean hasEmail()
-
setDisplayName
public void setDisplayName(boolean ok)
-
hasDisplayName
public boolean hasDisplayName()
-
setFirstName
public void setFirstName(boolean ok)
-
hasFirstName
public boolean hasFirstName()
-
setLastName
public void setLastName(boolean ok)
-
hasLastName
public boolean hasLastName()
-
canGetDN
public boolean canGetDN()
-
getBitSet
public BitSet getBitSet()
-
-