Package ru.i_novus.common.sign
Class SignatureGost
- java.lang.Object
-
- org.apache.xml.security.algorithms.SignatureAlgorithmSpi
-
- ru.i_novus.common.sign.SignatureGost
-
- Direct Known Subclasses:
SignatureGost.Gost3410_2001_Uri,SignatureGost.Gost3410_2001_Urn,SignatureGost.Gost3410_2012_256_Uri,SignatureGost.Gost3410_2012_256_Urn,SignatureGost.Gost3410_2012_512_Uri,SignatureGost.Gost3410_2012_512_Urn
public abstract class SignatureGost extends org.apache.xml.security.algorithms.SignatureAlgorithmSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignatureGost.Gost3410_2001_Uristatic classSignatureGost.Gost3410_2001_Urnstatic classSignatureGost.Gost3410_2012_256_Uristatic classSignatureGost.Gost3410_2012_256_Urnstatic classSignatureGost.Gost3410_2012_512_Uristatic classSignatureGost.Gost3410_2012_512_Urn
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StringengineGetJCEAlgorithmString()protected StringengineGetJCEProviderName()protected abstract StringengineGetURI()protected voidengineInitSign(Key signingKey)protected voidengineInitSign(Key signingKey, SecureRandom secureRandom)protected voidengineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec)protected voidengineInitVerify(Key verificationKey)protected voidengineSetHMACOutputLength(int hmacOutputLength)protected voidengineSetParameter(AlgorithmParameterSpec params)protected byte[]engineSign()protected voidengineUpdate(byte input)protected voidengineUpdate(byte[] input)protected voidengineUpdate(byte[] buf, int offset, int len)protected booleanengineVerify(byte[] signature)
-
-
-
Method Detail
-
engineGetURI
protected abstract String engineGetURI()
- Specified by:
engineGetURIin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi
-
engineGetJCEAlgorithmString
protected String engineGetJCEAlgorithmString()
- Specified by:
engineGetJCEAlgorithmStringin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi
-
engineGetJCEProviderName
protected String engineGetJCEProviderName()
- Specified by:
engineGetJCEProviderNamein classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi
-
engineUpdate
protected void engineUpdate(byte[] input) throws org.apache.xml.security.signature.XMLSignatureException- Specified by:
engineUpdatein classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineUpdate
protected void engineUpdate(byte input) throws org.apache.xml.security.signature.XMLSignatureException- Specified by:
engineUpdatein classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineUpdate
protected void engineUpdate(byte[] buf, int offset, int len) throws org.apache.xml.security.signature.XMLSignatureException- Specified by:
engineUpdatein classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineInitSign
protected void engineInitSign(Key signingKey) throws org.apache.xml.security.signature.XMLSignatureException
- Specified by:
engineInitSignin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineInitSign
protected void engineInitSign(Key signingKey, SecureRandom secureRandom) throws org.apache.xml.security.signature.XMLSignatureException
- Specified by:
engineInitSignin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineInitSign
protected void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws org.apache.xml.security.signature.XMLSignatureException
- Specified by:
engineInitSignin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineSign
protected byte[] engineSign() throws org.apache.xml.security.signature.XMLSignatureException- Specified by:
engineSignin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineInitVerify
protected void engineInitVerify(Key verificationKey) throws org.apache.xml.security.signature.XMLSignatureException
- Specified by:
engineInitVerifyin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineVerify
protected boolean engineVerify(byte[] signature) throws org.apache.xml.security.signature.XMLSignatureException- Specified by:
engineVerifyin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineSetParameter
protected void engineSetParameter(AlgorithmParameterSpec params) throws org.apache.xml.security.signature.XMLSignatureException
- Specified by:
engineSetParameterin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
engineSetHMACOutputLength
protected void engineSetHMACOutputLength(int hmacOutputLength) throws org.apache.xml.security.signature.XMLSignatureException- Specified by:
engineSetHMACOutputLengthin classorg.apache.xml.security.algorithms.SignatureAlgorithmSpi- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
-