![JAR search and dependency download from the Maven repository](/logo.png)
org.frameworkset.security.ecc.ECCCoderInf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-ticket Show documentation
Show all versions of bboss-ticket Show documentation
support session share between application cluster nodes and cross domain application nodes.support good application session monitor and session data statitic module.demo site http://session.bbossgroups.com/
The newest version!
/*
* Copyright 2008 bbossgroups
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.frameworkset.security.ecc;
import java.security.Key;
import java.security.PrivateKey;
import java.security.PublicKey;
/**
* Title: ECCCoderInf.java
* Description:
* bboss workgroup
* Copyright (c) 2008
* @Date 2014年4月22日
* @author biaoping.yin
* @version 3.8.0
*/
public interface ECCCoderInf {
// public abstract Key evalECPrivateKey(String privateKey);
public Key evalPrivateKey(String privatekey,String certAlgorithm);
public Key evalPublicKey(String publickey,String certAlgorithm);
// public abstract Key evalECPublicKey(String publicKey);
public abstract Key _evalECPrivateKey(byte[] privateKey);
public abstract Key _evalECPublicKey(byte[] publicKey);
/**
* 解密
* 用私钥解密
*
* @param data
* @param key
* @return
* @throws Exception
*/
public abstract byte[] decrypt(byte[] data, String privatekey)
throws Exception;
/**
* 解密
* 用私钥解密
*
* @param data
* @param key
* @return
* @throws Exception
*/
public abstract byte[] decrypt(String database64, String privatekey)
throws Exception;
/**
* 解密
* 用私钥解密
*
* @param data
* @param key
* @return
* @throws Exception
*/
public abstract byte[] decrypt(String database64, Key priKey)
throws Exception;
/**
* 解密
* 用私钥解密
*
* @param data
* @param key
* @return
* @throws Exception
*/
public abstract byte[] decrypt(byte[] data, Key priKey_)
throws Exception;
/**
* 加密
* 用公钥加密
*
* @param data
* @param privateKey
* @return
* @throws Exception
*/
public abstract byte[] encrypt(byte[] data, String publicKey)
throws Exception;
public abstract byte[] encrypt(String data, String publicKey)
throws Exception;
/**
* 加密
* 用公钥加密
*
* @param data
* @param privateKey
* @return
* @throws Exception
*/
public abstract byte[] encrypt(byte[] data, Key pubKey_)
throws Exception;
public abstract byte[] encrypt(String data, Key pubKey_)
throws Exception;
/**
* 初始化密钥
*
* @return
* @throws Exception
*/
// public abstract SimpleKeyPair genECKeyPair( ) throws Exception;
public SimpleKeyPair genECKeyPair(String certAlgorithm ) throws Exception ;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy