/************************************************************************* * * * EJBCA Community: 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; import java.util.List; import javax.ejb.Stateless; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import org.cesecore.authentication.tokens.AuthenticationToken; import org.ejbca.util.KeyValuePair; /** * JEE5 EJB lookup helper. * * @version $Id: EnterpriseEditionWSBridgeSessionBean.java 24602 2016-10-31 13:26:34Z anatom $ */ @Stateless @TransactionAttribute(TransactionAttributeType.SUPPORTS) public class EnterpriseEditionWSBridgeSessionBean implements EnterpriseEditionWSBridgeSessionLocal { @Override public void createCryptoToken(AuthenticationToken admin, String tokenName, String tokenType, String activationPin, boolean autoActivate, List cryptoTokenProperties) throws UnsupportedMethodException { throw new UnsupportedMethodException("This method can only be used in Enterprise edition."); } @Override public void generateCryptoTokenKeys(AuthenticationToken admin, String cryptoTokenName, String keyPairAlias, String keySpecification) throws UnsupportedMethodException { throw new UnsupportedMethodException("This method can only be used in Enterprise edition."); } @Override public void createCA(AuthenticationToken admin, String caname, String cadn, String catype, String encodedValidity, String certprofile, String signAlg, int signedByCAId, String cryptoTokenName, List purposeKeyMapping, List caProperties) throws UnsupportedMethodException { throw new UnsupportedMethodException("This method can only be used in Enterprise edition."); } @Override public void addSubjectToRole(AuthenticationToken admin, String roleName, String caName, String matchWith, String matchType, String matchValue) throws UnsupportedMethodException { throw new UnsupportedMethodException("This method can only be used in Enterprise edition."); } @Override public void removeSubjectFromRole(AuthenticationToken admin, String roleName, String caName, String matchWith, String matchType, String matchValue) throws UnsupportedMethodException { throw new UnsupportedMethodException("This method can only be used in Enterprise edition."); } }