Tabnine Logo
ValuePolicyType.setStringPolicy
Code IndexAdd Tabnine to your IDE (free)

How to use
setStringPolicy
method
in
com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType

Best Java code snippets using com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType.setStringPolicy (Showing top 2 results out of 315)

origin: Evolveum/midpoint

public ValuePolicyType stringPolicy(StringPolicyType value) {
  setStringPolicy(value);
  return this;
}
origin: Evolveum/midpoint

/**
 * add defined default values
 */
private void normalize(ValuePolicyType pp) {
  if (null == pp) {
    throw new IllegalArgumentException("Password policy cannot be null");
  }
  if (null == pp.getStringPolicy()) {
    StringPolicyType sp = new StringPolicyType();
    pp.setStringPolicy(StringPolicyUtils.normalize(sp));
  } else {
    pp.setStringPolicy(StringPolicyUtils.normalize(pp.getStringPolicy()));
  }
  if (null == pp.getLifetime()) {
    PasswordLifeTimeType lt = new PasswordLifeTimeType();
    lt.setExpiration(-1);
    lt.setWarnBeforeExpiration(0);
    lt.setLockAfterExpiration(0);
    lt.setMinPasswordAge(0);
    lt.setPasswordHistoryLength(0);
  }
}
 
com.evolveum.midpoint.xml.ns._public.common.common_3ValuePolicyTypesetStringPolicy

Popular methods of ValuePolicyType

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getApplicationContext (Context)
    • onRequestPermissionsResult (Fragment)
    • notifyDataSetChanged (ArrayAdapter)
    • BigInteger (java.math)
      An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
    • InetAddress (java.net)
      An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
    • Locale (java.util)
      Locale represents a language/country/variant combination. Locales are used to alter the presentatio
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • ZipFile (java.util.zip)
      This class provides random read access to a zip file. You pay more to read the zip file's central di
    • JList (javax.swing)
    • Top plugins for Android Studio
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now