Instead of using Signature.signature directly, use getSignature().