Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
SIX OVAL - http://code.google.com/p/six-oval/ Copyright (C) 2010 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number: H22PRO-1124 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package jp.go.aist.six.oval.model.macos;
 
The pwpolicy59 item holds the password policy information for a particular user specified by the target_user element.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: PwPolicy59Item.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class PwPolicy59Item
     extends ItemType
 {
 
     //{0..1}
     private EntityItemStringType   target_user;
 
     //{nillable="true"}
     private EntityItemStringType   username;
     private EntityItemStringType   userpass;
     private EntityItemStringType   directory_node;
 
     private EntityItemIntType      maxChars;
     private EntityItemIntType      maxFailedLoginAttempts;
     private EntityItemIntType      minChars;
     private EntityItemBoolType     passwordCannotBeName;
     private EntityItemBoolType     requiresAlpha;
     private EntityItemBoolType     requiresNumeric;
 
     private EntityItemIntType      maxMinutesUntilChangePassword;
     private EntityItemIntType      minMinutesUntilChangePassword;
     private EntityItemBoolType     requiresMixedCase;
     private EntityItemBoolType     requiresSymbol;
     private EntityItemIntType      minutesUntilFailedLoginReset;
     private EntityItemIntType      usingHistory;
     private EntityItemBoolType     canModifyPasswordforSelf;
     private EntityItemBoolType     usingExpirationDate;
     private EntityItemBoolType     usingHardExpirationDate;
     private EntityItemStringType   expirationDateGMT;
     private EntityItemStringType   hardExpireDateGMT;
     private EntityItemIntType      maxMinutesUntilDisabled;
     private EntityItemIntType      maxMinutesOfNonUse;
     private EntityItemBoolType     newPasswordRequired;
     private EntityItemBoolType     notGuessablePattern;



    
Constructor.
 
     public PwPolicy59Item()
     {
         this( 0 );
     }
 
 
     public PwPolicy59Item(
                     final int id
                     )
     {
         thisidnull );
     }
 
 
     public PwPolicy59Item(
                     final int id,
                     final StatusEnumeration status
                     )
     {
         superidstatus );
 
         = .;
    }



    
    public void setTargetUser(
                    final EntityItemStringType target_user
                    )
    {
        this. = target_user;
    }
    {
        return ;
    }



    
    public void setUsername(
                    final EntityItemStringType username
                    )
    {
        this. = username;
    }
    {
        return ;
    }



    
    public void setUserpass(
                    final EntityItemStringType userpass
                    )
    {
        this. = userpass;
    }
    {
        return ;
    }



    
    public void setDirectoryNode(
                    final EntityItemStringType directory_node
                    )
    {
        this. = directory_node;
    }
    {
        return ;
    }



    
    public void setMaxChars(
                    final EntityItemIntType maxChars
                    )
    {
        this. = maxChars;
    }
    {
        return ;
    }



    
    public void setMaxFailedLoginAttempts(
                    final EntityItemIntType maxFailedLoginAttempts
                    )
    {
        this. = maxFailedLoginAttempts;
    }
    {
        return ;
    }



    
    public void setMinChars(
                    final EntityItemIntType minChars
                    )
    {
        this. = minChars;
    }
    {
        return ;
    }



    
    public void setPasswordCannotBeName(
                    final EntityItemBoolType passwordCannotBeName
                    )
    {
        this. = passwordCannotBeName;
    }
    {
        return ;
    }



    
    public void setRequiresAlpha(
                    final EntityItemBoolType requiresAlpha
                    )
    {
        this. = requiresAlpha;
    }
    {
        return ;
    }



    
    public void setRequiresNumeric(
                    final EntityItemBoolType requiresNumeric
                    )
    {
        this. = requiresNumeric;
    }
    {
        return ;
    }



    
                    final EntityItemIntType maxMinutesUntilChangePassword
                    )
    {
        this. = maxMinutesUntilChangePassword;
    }
    {
        return ;
    }



    
                    final EntityItemIntType minMinutesUntilChangePassword
                    )
    {
        this. = minMinutesUntilChangePassword;
    }
    {
        return ;
    }



    
    public void setRequiresMixedCase(
                    final EntityItemBoolType requiresMixedCase
                    )
    {
        this. = requiresMixedCase;
    }
    {
        return ;
    }



    
    public void setRequiresSymbol(
                    final EntityItemBoolType requiresSymbol
                    )
    {
        this. = requiresSymbol;
    }
    {
        return ;
    }



    
    public void setMinutesUntilFailedLoginReset(
                    final EntityItemIntType minutesUntilFailedLoginReset
                    )
    {
        this. = minutesUntilFailedLoginReset;
    }
    {
        return ;
    }



    
    public void setUsingHistory(
                    final EntityItemIntType usingHistory
                    )
    {
        this. = usingHistory;
    }
    {
        return ;
    }



    
    public void setCanModifyPasswordforSelf(
                    final EntityItemBoolType canModifyPasswordforSelf
                    )
    {
        this. = canModifyPasswordforSelf;
    }
    {
        return ;
    }



    
    public void setUsingExpirationDate(
                    final EntityItemBoolType usingExpirationDate
                    )
    {
        this. = usingExpirationDate;
    }
    {
        return ;
    }



    
    public void setUsingHardExpirationDate(
                    final EntityItemBoolType usingHardExpirationDate
                    )
    {
        this. = usingHardExpirationDate;
    }
    {
        return ;
    }



    
    public void setExpirationDateGMT(
                    final EntityItemStringType expirationDateGMT
                    )
    {
        this. = expirationDateGMT;
    }
    {
        return ;
    }



    
    public void setHardExpireDateGMT(
                    final EntityItemStringType hardExpireDateGMT
                    )
    {
        this. = hardExpireDateGMT;
    }
    {
        return ;
    }



    
    public void setMaxMinutesUntilDisabled(
                    final EntityItemIntType maxMinutesUntilDisabled
                    )
    {
        this. = maxMinutesUntilDisabled;
    }
    {
        return ;
    }



    
    public void setMaxMinutesOfNonUse(
                    final EntityItemIntType maxMinutesOfNonUse
                    )
    {
        this. = maxMinutesOfNonUse;
    }
    {
        return ;
    }



    
    public void setNewPasswordRequired(
                    final EntityItemBoolType newPasswordRequired
                    )
    {
        this. = newPasswordRequired;
    }
    {
        return ;
    }



    
    public void setNotGuessablePattern(
                    final EntityItemBoolType notGuessablePattern
                    )
    {
        this. = notGuessablePattern;
    }
    {
        return ;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof PwPolicy59Item)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "pwpolicy59_item[" + super.toString()
                        + ", target_user="             + getTargetUser()
                        + ", username="                + getUsername()
                        + ", userpass="                + getUserpass()
                        + ", directory_node="          + getDirectoryNode()
                        + ", maxChars="                + getMaxChars()
                        + ", maxFailedLoginAttempts="  + getMaxFailedLoginAttempts()
                        + ", minChars="                + getMinChars()
                        + ", passwordCannotBeName="    + getPasswordCannotBeName()
                        + ", requiresAlpha="           + getRequiresAlpha()
                        + ", requiresNumeric="         + getRequiresNumeric()
                        + ", maxMinutesUntilChangePassword="   + getMaxMinutesUntilChangePassword()
                        + ", minMinutesUntilChangePassword="   + getMinMinutesUntilChangePassword()
                        + ", requiresMixedCase="               + getRequiresMixedCase()
                        + ", requiresSymbol="                  + getRequiresSymbol()
                        + ", minutesUntilFailedLoginReset="    + getMinutesUntilFailedLoginReset()
                        + ", usingHistory="                    + getUsingHistory()
                        + ", canModifyPasswordforSelf="        + getCanModifyPasswordforSelf()
                        + ", usingExpirationDate="             + getUsingExpirationDate()
                        + ", usingHardExpirationDate="         + getUsingHardExpirationDate()
                        + ", expirationDateGMT="               + getExpirationDateGMT()
                        + ", hardExpireDateGMT="               + getHardExpireDateGMT()
                        + ", maxMinutesUntilDisabled="         + getMaxMinutesUntilDisabled()
                        + ", maxMinutesOfNonUse="              + getMaxMinutesOfNonUse()
                        + ", newPasswordRequired="             + getNewPasswordRequired()
                        + ", notGuessablePattern="             + getNotGuessablePattern()
             + "]";
    }
//
New to GrepCode? Check out our FAQ X