📄 isernogenerator.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 org.ejbca.core.ejb.ca.sign;import java.math.BigInteger;/** * Interface for a serial number generator. * * @version $Id: ISernoGenerator.java,v 1.1 2006/01/17 20:30:04 anatom Exp $ */public interface ISernoGenerator { /** * Generates a number of serial number bytes. * * @return an array of serial number bytes. */ public BigInteger getSerno(); /** * Returns the number of serial number bytes generated by this generator. * * @return The number of serial number bytes generated by this generator. */ public int getNoSernoBytes(); /** * Sets an optional seed needed by the serno generator. This can be different things, for a * sequential generator it can for instance be the first number to be generated and for a * random generator it can be a random seed. The constructor may seed the generator enough so * this method may not be nessecary to call. * * @param the seed used to initilize the serno generator. */ public void setSeed(long seed);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -