⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userauthdata.java

📁 一套JAVA的CA证书签发系统.
💻 JAVA
字号:
/************************************************************************* *                                                                       * *  EJBCA: The OpenSource Certificate Authority                          * *                                                                       * *  This software is free software; you can redistribute it and/or       * *  modify it under the terms of the GNU Lesser General Public           * *  License as published by the Free Software Foundation; either         * *  version 2.1 of the License, or any later version.                    * *                                                                       * *  See terms of license at gnu.org.                                     * *                                                                       * *************************************************************************/ package se.anatom.ejbca.ca.auth;import java.io.Serializable;import se.anatom.ejbca.ra.ExtendedInformation;import se.anatom.ejbca.util.StringTools;/** * Holds authentication data collected from an authentication source. * * @version $Id: UserAuthData.java,v 1.9 2004/05/13 15:34:40 herrvendil Exp $ */public class UserAuthData implements Serializable {          private String username;    private String password;    private String subjectDN;    private int caid = 0;    private String subjectAltName;    private String subjectEmail = null;    private int certProfileId = 0;    private ExtendedInformation extendedinformation = null;    /** type of user, from SecConst */    private int type;    /**     * Creates new empty UserAuthData     */    public UserAuthData() {    }	/**	 * Creates a new UserAuthData object.	 *	 * @param user username	 * @param password of user, may be null if password doesn't exist.	 * @param dn DN for user	 * @param caid of user	 * @param altName subject alternative names to be put in certificate	 * @param email email address	 * @param type type of user from SecConst (EndEntity, CA etc)	 * @param certProfileId the certificate profile the users certificate should be created with	 * @param extendedinformation Contains extendedinformation about the user, like picture, may be null if extended informatin doesn't exist.	 */    public UserAuthData(String user, String password, String dn, int caid, String altName, String email, int type, int certProfileId, ExtendedInformation extendedinformation) {        this.username=StringTools.strip(user);        this.password=password;        this.subjectDN=dn;        this.caid=caid;        this.subjectAltName=altName;        this.subjectEmail=email;        this.type=type;        this.certProfileId = certProfileId;        this.extendedinformation=extendedinformation;    }    /**     * username must be called 'striped' using StringTools.strip()     *     * @param user username     *     * @see se.anatom.ejbca.util.StringTools     */    public void setUsername(String user) {        this.username = StringTools.strip(user);    }    /**     * getter     *     * @return username     */    public String getUsername() {        return username;    }        /**     * setter     * @param password may be null if it doesn't exist.     *     */    public void setPassword(String password) {        this.password = password;    }    /**     * getter     *     * @return password, may be null if no password exist.     */    public String getPassword() {        return password;    }    /**     * setter     *     * @param dn DN     */    public void setDN(String dn) {        this.subjectDN = dn;    }    /**     * getter     *     * @return DN     */    public String getDN() {        return subjectDN;    }    	    /**		 * setter		 *		 * @return CAId		 */	public void setCAId(int caid) {		this.caid=caid;    }    	    /**		 * getter		 *		 * @return CAId		 */	public int getCAId() {		 return caid;    }    /**     * setter     *     * @param altName altName     */    public void setAltName(String altName) {        this.subjectAltName = altName;    }    /**     * getter     *     * @return altName     */    public String getAltName() {        return subjectAltName;    }    /**     * setter     *     * @param email email     */    public void setEmail(String email) {        this.subjectEmail = email;    }    /**     * getter     *     * @return email     */    public String getEmail() {        return subjectEmail;    }    /**     * setter     *     * @param type type     */    public void setType(int type) {        this.type = type;    }    /**     * getter     *     * @return type     */    public int getType() {        return type;    }    /**     * setter     *     * @param certProfileId certificate profile id     */    public void setCertProfileId(int certProfileId) {        this.certProfileId = certProfileId;    }    /**     * getter     *     * @return certificate profile id     */    public int getCertProfileId() {        return certProfileId;    }        /**     * setter     * @param extendedinformation may be null if it doesn't exist.     *     */    public void setExtendedInformation(ExtendedInformation extendedinformation) {        this.extendedinformation = extendedinformation;    }    /**     * getter     *     * @return extendedinformation of the user, could be picture, may be null if no extendedinformation exists.     */    public ExtendedInformation getExtendedInformation() {        return extendedinformation;    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -