|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.eng.spagobi.jpivotaddins.engines.jpivot.security.SecurityUtilities
public class SecurityUtilities
| Constructor Summary | |
|---|---|
SecurityUtilities(org.apache.log4j.Logger log)
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String token,
java.lang.String tokenclear,
java.security.PublicKey publicKey)
Authenticate the caller (must be SpagoBI) |
byte[] |
decodeBase64(java.lang.String encoded)
Decode a Base64 String into a byte array |
java.util.Map |
decodeParameterMap(java.util.Map parMap)
Decodes (using byte64 decoding function) all the value contained into the input map |
java.security.PublicKey |
getPublicKey()
Get the SpagoBI Public Key for a DSA alghoritm |
boolean |
verifySignature(byte[] tokenclear,
byte[] tokensign,
java.security.PublicKey publicKeyDSASbi)
Verify the signature |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityUtilities(org.apache.log4j.Logger log)
| Method Detail |
|---|
public java.security.PublicKey getPublicKey()
public byte[] decodeBase64(java.lang.String encoded)
encoded - String encoded with Base64 algorithm
public boolean verifySignature(byte[] tokenclear,
byte[] tokensign,
java.security.PublicKey publicKeyDSASbi)
tokenclear - Clear datatokensign - Signed data
public boolean authenticate(java.lang.String token,
java.lang.String tokenclear,
java.security.PublicKey publicKey)
request - HttpRequestresponse - HttpResponse
public java.util.Map decodeParameterMap(java.util.Map parMap)
parMap - Map containing value to be decoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||