Hello, everybody.
Here is a question: I have method digest(byte[] data)
. It should be private, because we really don't need it outside a class, however i'll not die if i make it public, if it helps.
The question is: can i somehow attach interceptor to it? The thing is that it is not called like getBean('MyBean').digest()
, it is called through getBean('MyBean').sign(data)
where sign is smth like
public byte[] sign(byte[] data){
...
b = digest(data);
...
return signature;
}
Thx.