Class GrouperPassword
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.authentication.GrouperPassword
- All Implemented Interfaces:
com.auth0.jwt.interfaces.RSAKeyProvider
,HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
public class GrouperPassword
extends GrouperAPI
implements Hib3GrouperVersioned, com.auth0.jwt.interfaces.RSAKeyProvider
grouper password object to store credentials
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
allowed from cidrsstatic final String
ws or uistatic final String
created millisstatic final String
encryption typestatic final String
entity typestatic final String
expires millisstatic final String
db id for this rowstatic final String
is_hashedstatic final String
last authenticatedstatic final String
last editedstatic final String
member_idstatic final String
member id who set the passwordstatic final String
passwordstatic final String
saltstatic final String
usernamestatic final String
constant for field name for: allowedFromCidrsstatic final String
constant for field name for: applicationstatic final String
constant for field name for: encryptionTypestatic final String
constant for field name for: entityTypestatic final String
constant for field name for: idstatic final String
constant for field name for: isHashedstatic final String
constant for field name for: lastAuthenticatedstatic final String
constant for field name for: lastEditedstatic final String
constant for field name for: memberIdstatic final String
constant for field name for: thePasswordstatic final String
constant for field name for: theSaltstatic final String
constant for field name for: userNamestatic final String
name of the table in the database.Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
deep clone the fields in this objectgetId()
getPublicKeyById
(String keyId) boolean
isHashed()
void
setAllowedFromCidrs
(String allowedFromCidrs) void
setApplication
(GrouperPassword.Application application) void
setApplicationDb
(String applicationDb) void
setCreatedMillis
(Long createdMillis) void
setEncryptionType
(GrouperPassword.EncryptionType encryptionType) void
setEncryptionTypeDb
(String encryptionTypeDb) void
setEntityType
(String entityType) void
setExpiresMillis
(Long expiresMillis) void
setHashed
(boolean isHashed) void
void
setIsHashedDb
(String isHashedDb) void
setLastAuthenticated
(Long lastAuthenticated) void
setLastEdited
(Long lastEdited) void
setMemberId
(String memberId) void
setMemberIdWhoSetPassword
(String memberIdWhoSetPassword) void
setThePassword
(String thePassword) void
setTheSalt
(String theSalt) void
setUsername
(String username) boolean
verify
(com.auth0.jwt.interfaces.DecodedJWT decodedJwt) Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onPreSave, onPreUpdate, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
COLUMN_ID
db id for this row- See Also:
-
COLUMN_USER_NAME
username- See Also:
-
COLUMN_MEMBER_ID
member_id- See Also:
-
COLUMN_ENTITY_TYPE
entity type- See Also:
-
COLUMN_IS_HASHED
is_hashed- See Also:
-
COLUMN_ENCRYPTION_TYPE
encryption type- See Also:
-
COLUMN_SALT
salt- See Also:
-
COLUMN_PASSWORD
password- See Also:
-
COLUMN_APPLICATION
ws or ui- See Also:
-
COLUMN_ALLOWED_FROM_CIDRS
allowed from cidrs- See Also:
-
COLUMN_LAST_AUTHENTICATED
last authenticated- See Also:
-
COLUMN_LAST_EDITED
last edited- See Also:
-
COLUMN_EXPIRES_MILLIS
expires millis- See Also:
-
COLUMN_CREATED_MILLIS
created millis- See Also:
-
COLUMN_MEMBER_ID_WHO_SET_PASSWORD
member id who set the password- See Also:
-
TABLE_GROUPER_PASSWORD
name of the table in the database.- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_USER_NAME
constant for field name for: userName- See Also:
-
FIELD_MEMBER_ID
constant for field name for: memberId- See Also:
-
FIELD_ENTITY_TYPE
constant for field name for: entityType- See Also:
-
FIELD_IS_HASHED
constant for field name for: isHashed- See Also:
-
FIELD_ENCRYPTION_TYPE
constant for field name for: encryptionType- See Also:
-
FIELD_THE_SALT
constant for field name for: theSalt- See Also:
-
FIELD_THE_PASSWORD
constant for field name for: thePassword- See Also:
-
FIELD_APPLICATION
constant for field name for: application- See Also:
-
FIELD_ALLLOWED_FROM_CIDRS
constant for field name for: allowedFromCidrs- See Also:
-
FIELD_LAST_AUTHENTICATED
constant for field name for: lastAuthenticated- See Also:
-
FIELD_LAST_EDITED
constant for field name for: lastEdited- See Also:
-
-
Constructor Details
-
GrouperPassword
public GrouperPassword()
-
-
Method Details
-
getExpiresMillis
-
setExpiresMillis
-
getCreatedMillis
-
setCreatedMillis
-
getMemberIdWhoSetPassword
-
setMemberIdWhoSetPassword
-
getId
- Returns:
- the id
-
setId
- Parameters:
id
- the id to set
-
getUsername
- Returns:
- the username
-
setUsername
- Parameters:
userName
- the userName to set
-
getMemberId
- Returns:
- the memberId
-
setMemberId
- Parameters:
memberId
- the memberId to set
-
getEntityType
- Returns:
- the entityType
-
setEntityType
- Parameters:
entityType
- the entityType to set
-
getIsHashedDb
- Returns:
- the isHashedDb
-
isHashed
public boolean isHashed()- Returns:
- the isHashed
-
setHashed
public void setHashed(boolean isHashed) - Parameters:
isHashed
- the isHashed to set
-
getEncryptionTypeDb
- Returns:
- the encryptionTypeDb
-
getEncryptionType
- Returns:
- the encryptionType
-
setEncryptionType
- Parameters:
encryptionType
- the encryptionType to set
-
getTheSalt
- Returns:
- the theSalt
-
setTheSalt
- Parameters:
theSalt
- the theSalt to set
-
getThePassword
- Returns:
- the thePassword
-
setThePassword
- Parameters:
thePassword
- the thePassword to set
-
getLastEdited
- Returns:
- the lastEdited
-
setLastEdited
- Parameters:
lastEdited
- the lastEdited to set
-
getApplicationDb
- Returns:
- the applicationDb
-
getApplication
- Returns:
- the application
-
setApplication
- Parameters:
application
- the application to set
-
getAllowedFromCidrs
- Returns:
- the allowedFromCidrs
-
setAllowedFromCidrs
- Parameters:
allowedFromCidrs
- the allowedFromCidrs to set
-
getLastAuthenticated
- Returns:
- the lastAuthenticated
-
setLastAuthenticated
- Parameters:
lastAuthenticated
- the lastAuthenticated to set
-
setIsHashedDb
- Parameters:
isHashedDb
- the isHashedDb to set
-
setEncryptionTypeDb
- Parameters:
encryptionTypeDb
- the encryptionTypeDb to set
-
setApplicationDb
- Parameters:
applicationDb
- the applicationDb to set
-
verify
public boolean verify(com.auth0.jwt.interfaces.DecodedJWT decodedJwt) -
getPublicKeyById
-
getPrivateKey
-
getPrivateKeyId
-
clone
Description copied from class:GrouperAPI
deep clone the fields in this object- Specified by:
clone
in interfaceGrouperCloneable
- Specified by:
clone
in classGrouperAPI
- Returns:
- the clone of the object
- See Also:
-