Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Type of this signer is "apk2" represents a signer that // shells out to apksigner to sign artifacts Type = "apk2" // ModeV3Enabled enables APK v3 signing ModeV3Enabled = "v3enabled" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APK2Signer ¶
type APK2Signer struct { signer.Configuration // contains filtered or unexported fields }
APK2Signer holds the configuration of the signer
func New ¶
func New(conf signer.Configuration) (s *APK2Signer, err error)
New initializes an apk signer using a configuration
func (*APK2Signer) Config ¶
func (s *APK2Signer) Config() signer.Configuration
Config returns the configuration of the current signer
func (*APK2Signer) GetDefaultOptions ¶
func (s *APK2Signer) GetDefaultOptions() interface{}
GetDefaultOptions returns default options of the signer
func (*APK2Signer) GetTestFile ¶
func (s *APK2Signer) GetTestFile() []byte
GetTestFile returns a valid test APK
func (*APK2Signer) SignFile ¶
func (s *APK2Signer) SignFile(file []byte, options interface{}) (signer.SignedFile, error)
SignFile signs a whole aligned APK file with v1 and v2 signatures
type Signature ¶
Signature is a PKCS7 detached signature
func Unmarshal ¶
Unmarshal takes the base64 representation of a v1 JAR PKCS7 detached signature and the content of the signed data, and returns a PKCS7 struct
Click to show internal directories.
Click to hide internal directories.