Package org.ejbca.core.model.hardtoken

Examples of org.ejbca.core.model.hardtoken.HardTokenIssuerExistsException


    public void addHardTokenIssuer(String alias, int admingroupid) throws HardTokenIssuerExistsException {
        Iterator<AdminGroup> iter = this.informationmemory.getHardTokenIssuingAdminGroups().iterator();
        while (iter.hasNext()) {
            if (iter.next().getAdminGroupId() == admingroupid) {
                if (!hardtokensession.addHardTokenIssuer(admin, alias, admingroupid, new HardTokenIssuer())) {
                    throw new HardTokenIssuerExistsException();
                }
                informationmemory.hardTokenDataEdited();         
            }
        }     
    }
View Full Code Here


    }
   
    public void renameHardTokenIssuer(String oldalias, String newalias, int newadmingroupid) throws HardTokenIssuerExistsException {
        if(informationmemory.authorizedToHardTokenIssuer(oldalias)){         
            if(!hardtokensession.renameHardTokenIssuer(admin, oldalias, newalias, newadmingroupid)) {
                throw new HardTokenIssuerExistsException();
            }
            informationmemory.hardTokenDataEdited();
        }  
    }
View Full Code Here

    }
   
    public void cloneHardTokenIssuer(String oldalias, String newalias, int newadmingroupid) throws HardTokenIssuerExistsException {
        if(informationmemory.authorizedToHardTokenIssuer(oldalias)){             
            if(!hardtokensession.cloneHardTokenIssuer(admin, oldalias, newalias, newadmingroupid)) {
                throw new HardTokenIssuerExistsException();
            }
            informationmemory.hardTokenDataEdited();
        }
    }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.hardtoken.HardTokenIssuerExistsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.