java.lang.Object
jp.ecuacion.lib.rest.dto.RequestPassphraseDto
Passphrase情報を持つDto。
綺麗な持ち方としては、version, passphraseはversionにかかわらない値としてabstractクラスで保持、
バージョンごとの保持項目はそれを継承した個々のバージョン別クラスで定義、なのだが、
そうするとPaaPhraseDtoもRequestDto上でgenerics指定する必要があり、コード上煩雑になりそうなのと、
本クラス一つで複数バージョン分の項目を持てばハンドリングできると想定されるので 複数バージョンの情報を含めてこの1クラスで表現することとする
-
Constructor Summary
ConstructorsConstructorDescriptionRequestPassphraseDto(String version, String passphraseHashed, String passphraseForInitialRegistration) constructor。 -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPassphraseForInitialRegistration(String passphraseForInitialRegistration) voidsetPassphraseHashed(String passphraseHashed) voidsetVersion(String version)
-
Constructor Details
-
RequestPassphraseDto
public RequestPassphraseDto() -
RequestPassphraseDto
public RequestPassphraseDto(String version, String passphraseHashed, String passphraseForInitialRegistration) constructor。 初回のみ使用するpassphraseForInitialRegistrationも、 2回目以降使用passphraseHashedもStringでそれぞれのconstructorを持つことができないので 全項目を含むconstructorを持っておく
-
-
Method Details
-
getVersion
-
setVersion
-
getPassphraseHashed
-
setPassphraseHashed
-
getPassphraseForInitialRegistration
-
setPassphraseForInitialRegistration
-