Class ModelPrincipalAuthenticationData
java.lang.Object
org.apache.polaris.persistence.relational.jdbc.models.ModelPrincipalAuthenticationData
- All Implemented Interfaces:
Converter<org.apache.polaris.core.entity.PolarisPrincipalSecrets>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()fromPrincipalAuthenticationData(org.apache.polaris.core.entity.PolarisPrincipalSecrets record) org.apache.polaris.core.entity.PolarisPrincipalSecretsConverts a ResultSet to model.longtoMap(DatabaseType databaseType) Convert a model into a Map with keys as snake case names, where as values as values of member of model obj.static org.apache.polaris.core.entity.PolarisPrincipalSecretsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.polaris.persistence.relational.jdbc.models.Converter
toJsonbPGobject
-
Field Details
-
TABLE_NAME
- See Also:
-
ALL_COLUMNS
-
-
Constructor Details
-
ModelPrincipalAuthenticationData
public ModelPrincipalAuthenticationData()
-
-
Method Details
-
getPrincipalId
public long getPrincipalId() -
getPrincipalClientId
-
getSecretSalt
-
getMainSecretHash
-
getSecondarySecretHash
-
builder
-
fromResultSet
public org.apache.polaris.core.entity.PolarisPrincipalSecrets fromResultSet(ResultSet rs) throws SQLException Description copied from interface:ConverterConverts a ResultSet to model.- Specified by:
fromResultSetin interfaceConverter<org.apache.polaris.core.entity.PolarisPrincipalSecrets>- Parameters:
rs- : ResultSet from JDBC.- Returns:
- the corresponding business entity
- Throws:
SQLException- : Exception while fetching from ResultSet.
-
toMap
Description copied from interface:ConverterConvert a model into a Map with keys as snake case names, where as values as values of member of model obj. -
fromPrincipalAuthenticationData
public static ModelPrincipalAuthenticationData fromPrincipalAuthenticationData(org.apache.polaris.core.entity.PolarisPrincipalSecrets record) -
toPrincipalAuthenticationData
public static org.apache.polaris.core.entity.PolarisPrincipalSecrets toPrincipalAuthenticationData(ModelPrincipalAuthenticationData model)
-