All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.as400.access.SignonInfo Maven / Gradle / Ivy

The newest version!
///////////////////////////////////////////////////////////////////////////////
//                                                                             
// JTOpen (IBM Toolbox for Java - OSS version)                                 
//                                                                             
// Filename: SignonInfo.java
//                                                                             
// The source code contained herein is licensed under the IBM Public License   
// Version 1.0, which has been approved by the Open Source Initiative.         
// Copyright (C) 1997-2001 International Business Machines Corporation and     
// others. All rights reserved.                                                
//                                                                             
///////////////////////////////////////////////////////////////////////////////

package com.ibm.as400.access;

import java.io.Serializable;
import java.util.GregorianCalendar;

class SignonInfo implements Serializable
{
    private static final String copyright = "Copyright (C) 1997-2001 International Business Machines Corporation and others.";
    static final long serialVersionUID = 4L;
    
    GregorianCalendar currentSignonDate;
    GregorianCalendar lastSignonDate;
    GregorianCalendar expirationDate;
    int PWDexpirationWarning;
    ServerVersion version;
    int serverCCSID;
    // Note: not maintained as com.ibm.as400.security.auth.ProfileToken.  Class is currently not available in 
    // proxy environments, so don't want to force instantiation during signon.
    Object profileToken;
    String userId;

    SignonInfo() {
        super();
    }
    
    SignonInfo(SignonInfo signonInfo) {
        super();
        
        currentSignonDate = signonInfo.currentSignonDate;
        lastSignonDate = signonInfo.lastSignonDate;
        expirationDate = signonInfo.expirationDate;
        PWDexpirationWarning = signonInfo.PWDexpirationWarning;
        version = signonInfo.version;
        serverCCSID = signonInfo.serverCCSID;
        profileToken = signonInfo.profileToken;
        userId = signonInfo.userId;
    }
    
    SignonInfo(int vrm) {
    	version = new ServerVersion(vrm); 
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy