GetPasswordPolicy module

Get a password policy

Sample response (may differ slightly in your environment)

<Q2API HqVersion="4.2.3.4215A" HqAssemblyVersion="4.2.6185.31252" ServerDateTime="2017-11-28T14:45:53.4071664-06:00">
  <Result>
    <ErrorCode ErrorType="Success">0</ErrorCode>
    <ErrorDescription/>
    <HydraErrorReturnCode>0</HydraErrorReturnCode>
  </Result>
  <Data>
    <DalPasswordPolicyByUISourceId>
      <Q2_PasswordPolicyByUISourceId>
        <UISourceID>1</UISourceID>
        <PasswordPolicyID>1</PasswordPolicyID>
        <PasswordHistoryNumber>10</PasswordHistoryNumber>
        <MaxPasswordAge>90</MaxPasswordAge>
        <MinPasswordAge>0</MinPasswordAge>
        <MaxPasswordLength>15</MaxPasswordLength>
        <MinPasswordLength>5</MinPasswordLength>
        <NumbersRequired>1</NumbersRequired>
        <UpperCaseRequired>0</UpperCaseRequired>
        <LowerCaseRequired>0</LowerCaseRequired>
        <SpecialCharRequired>0</SpecialCharRequired>
        <InvalidAttempts>3</InvalidAttempts>
        <InvalidAction>0</InvalidAction>
        <LimitRepeating>0</LimitRepeating>
        <LimitAdjacent>0</LimitAdjacent>
        <ExcludeCharList/>
        <AutoResetHours>24</AutoResetHours>
        <NewPwdExpirationHours>72</NewPwdExpirationHours>
        <CQRCount>0</CQRCount>
        <CQRInvalidAttempts>3</CQRInvalidAttempts>
        <CaseSensitiveAnswer>0</CaseSensitiveAnswer>
        <QuestionMinLength>10</QuestionMinLength>
        <AnswerMinLength>4</AnswerMinLength>
        <TACRequiredLostPwd>0</TACRequiredLostPwd>
        <TACTTLMinutes>0</TACTTLMinutes>
        <TACDeliveryViaVoice>0</TACDeliveryViaVoice>
        <TACDeliveryViaEmail>0</TACDeliveryViaEmail>
        <TACLength>0</TACLength>
        <Description>Internet</Description>
        <LoginMinLength>1</LoginMinLength>
        <LoginMaxLength>50</LoginMaxLength>
        <DormantDays>0</DormantDays>
        <MlaMinLength>4</MlaMinLength>
        <MlaMaxLength>10</MlaMaxLength>
        <MlaRequireAlpha>true</MlaRequireAlpha>
        <MlaRequireNumeric>true</MlaRequireNumeric>
        <TACDeliveryViaSMS>false</TACDeliveryViaSMS>
        <OobInvalidAttempts>5</OobInvalidAttempts>
        <OobInvalidAction>0</OobInvalidAction>
      </Q2_PasswordPolicyByUISourceId>
    </DalPasswordPolicyByUISourceId>
  </Data>
</Q2API>
class q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.ParamsObj(logger, ui_source, hq_credentials=None)[source]

Bases: Q2ApiParamsObj

Parameters definition for GetPasswordPolicy

Parameters:
  • logger (TypeAliasType) – Reference to calling request’s logger (self.logger in your extension)

  • ui_source (str) – ShortName of Q2_UiSource row. Should almost always be OnlineBanking

  • hq_credentials (Optional[HqCredentials]) – Defaults to settings.HQ_CREDENTIALS

class q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.Q2_PasswordPolicyByUISourceId(AnswerMinLength, AutoResetHours, CQRCount, CQRInvalidAttempts, CaseSensitiveAnswer, Description, DormantDays, ExcludeCharList, InvalidAction, InvalidAttempts, LimitAdjacent, LimitRepeating, LoginMaxLength, LoginMinLength, LowerCaseRequired, MaxPasswordAge, MaxPasswordLength, MinPasswordAge, MinPasswordLength, MlaMaxLength, MlaMinLength, MlaRequireAlpha, MlaRequireNumeric, NewPwdExpirationHours, NumbersRequired, OobInvalidAction, OobInvalidAttempts, PasswordHistoryNumber, PasswordPolicyID, QuestionMinLength, SpecialCharRequired, TACDeliveryViaEmail, TACDeliveryViaSMS, TACDeliveryViaVoice, TACLength, TACRequiredLostPwd, TACTTLMinutes, UISourceID, UpperCaseRequired)[source]

Bases: object

Q2_PasswordPolicyByUISourceId(AnswerMinLength: lxml.objectify.IntElement, AutoResetHours: lxml.objectify.IntElement, CQRCount: lxml.objectify.IntElement, CQRInvalidAttempts: lxml.objectify.IntElement, CaseSensitiveAnswer: lxml.objectify.IntElement, Description: lxml.objectify.StringElement, DormantDays: lxml.objectify.IntElement, ExcludeCharList: lxml.objectify.StringElement, InvalidAction: lxml.objectify.IntElement, InvalidAttempts: lxml.objectify.IntElement, LimitAdjacent: lxml.objectify.IntElement, LimitRepeating: lxml.objectify.IntElement, LoginMaxLength: lxml.objectify.IntElement, LoginMinLength: lxml.objectify.IntElement, LowerCaseRequired: lxml.objectify.IntElement, MaxPasswordAge: lxml.objectify.IntElement, MaxPasswordLength: lxml.objectify.IntElement, MinPasswordAge: lxml.objectify.IntElement, MinPasswordLength: lxml.objectify.IntElement, MlaMaxLength: lxml.objectify.IntElement, MlaMinLength: lxml.objectify.IntElement, MlaRequireAlpha: lxml.objectify.BoolElement, MlaRequireNumeric: lxml.objectify.BoolElement, NewPwdExpirationHours: lxml.objectify.IntElement, NumbersRequired: lxml.objectify.IntElement, OobInvalidAction: lxml.objectify.IntElement, OobInvalidAttempts: lxml.objectify.IntElement, PasswordHistoryNumber: lxml.objectify.IntElement, PasswordPolicyID: lxml.objectify.IntElement, QuestionMinLength: lxml.objectify.IntElement, SpecialCharRequired: lxml.objectify.IntElement, TACDeliveryViaEmail: lxml.objectify.IntElement, TACDeliveryViaSMS: lxml.objectify.BoolElement, TACDeliveryViaVoice: lxml.objectify.IntElement, TACLength: lxml.objectify.IntElement, TACRequiredLostPwd: lxml.objectify.IntElement, TACTTLMinutes: lxml.objectify.IntElement, UISourceID: lxml.objectify.IntElement, UpperCaseRequired: lxml.objectify.IntElement)

AnswerMinLength: IntElement
AutoResetHours: IntElement
CQRCount: IntElement
CQRInvalidAttempts: IntElement
CaseSensitiveAnswer: IntElement
Description: StringElement
DormantDays: IntElement
ExcludeCharList: StringElement
InvalidAction: IntElement
InvalidAttempts: IntElement
LimitAdjacent: IntElement
LimitRepeating: IntElement
LoginMaxLength: IntElement
LoginMinLength: IntElement
LowerCaseRequired: IntElement
MaxPasswordAge: IntElement
MaxPasswordLength: IntElement
MinPasswordAge: IntElement
MinPasswordLength: IntElement
MlaMaxLength: IntElement
MlaMinLength: IntElement
MlaRequireAlpha: BoolElement
MlaRequireNumeric: BoolElement
NewPwdExpirationHours: IntElement
NumbersRequired: IntElement
OobInvalidAction: IntElement
OobInvalidAttempts: IntElement
PasswordHistoryNumber: IntElement
PasswordPolicyID: IntElement
QuestionMinLength: IntElement
SpecialCharRequired: IntElement
TACDeliveryViaEmail: IntElement
TACDeliveryViaSMS: BoolElement
TACDeliveryViaVoice: IntElement
TACLength: IntElement
TACRequiredLostPwd: IntElement
TACTTLMinutes: IntElement
UISourceID: IntElement
UpperCaseRequired: IntElement
class q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.DalPasswordPolicyByUISourceId(Q2_PasswordPolicyByUISourceId)[source]

Bases: object

DalPasswordPolicyByUISourceId(Q2_PasswordPolicyByUISourceId: Union[q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.Q2_PasswordPolicyByUISourceId, List[q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.Q2_PasswordPolicyByUISourceId]])

Q2_PasswordPolicyByUISourceId: Union[Q2_PasswordPolicyByUISourceId, List[Q2_PasswordPolicyByUISourceId]]
class q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.Data(DalPasswordPolicyByUISourceId)[source]

Bases: object

Data(DalPasswordPolicyByUISourceId: Union[q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.DalPasswordPolicyByUISourceId, List[q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.DalPasswordPolicyByUISourceId]])

DalPasswordPolicyByUISourceId: Union[DalPasswordPolicyByUISourceId, List[DalPasswordPolicyByUISourceId]]
class q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.ResultNode[source]

Bases: object

class q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.HqResponse(raw_response)[source]

Bases: HqResponse

Parameters:

response – Body of HQ response

async q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.execute(params_obj, use_json=False, **kwargs)[source]

This is the default way to submit the request to HQ. In theory, both json and soap payloads are equally accepted by HQ, though several variables may affect that (HQ version, Q2SDK implementation bugs, etc). This should not affect anything about the way your code deals with the data. In fact, the only difference to consuming extensions is the logging. Basically, call this with default parameters unless you find a compelling reason not to.

Parameters:
  • params_obj (ParamsObj) – Object containing everything necessary to call this HQ endpoint

  • use_json – If True, will call HQ’s .ashx (json) endpoint instead of .asmx (soap)

Return type:

HqResponse

async q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.get_soap(params_obj, **kwargs)[source]

Deprecated. Please use execute instead

Return type:

HqResponse

async q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.get_json(params_obj, **kwargs)[source]

Deprecated. Please use execute instead

Return type:

HqResponse

q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.build_json(params_obj)[source]
q2_sdk.hq.hq_api.q2_api.GetPasswordPolicy.build_soap(params_obj)[source]