Class SecAttributes


public class SecAttributes
extends CFDictionaryWrapper
  • Constructor Details

    • SecAttributes

      public SecAttributes()
  • Method Details

    • has

      public boolean has​(CFType key)
    • get

      public <T extends NativeObject> T get​(CFType key, Class<T> type)
    • set

      public SecAttributes set​(CFType key, NativeObject value)
    • getAccessible

      public SecAttrAccessible getAccessible()
    • setAccessible

      public SecAttributes setAccessible​(SecAttrAccessible accessible)
    • getAccessControl

      public SecAccessControl getAccessControl()
    • setAccessControl

      public SecAttributes setAccessControl​(SecAccessControl accessControl)
    • getAccessGroup

      public String getAccessGroup()
    • setAccessGroup

      public SecAttributes setAccessGroup​(String accessGroup)
    • isSynchronizable

      public boolean isSynchronizable()
    • setSynchronizable

      public SecAttributes setSynchronizable​(boolean synchronizable)
    • getCreationDate

      public NSDate getCreationDate()
    • setCreationDate

      public SecAttributes setCreationDate​(NSDate creationDate)
    • getModificationDate

      public NSDate getModificationDate()
    • setModificationDate

      public SecAttributes setModificationDate​(NSDate modificationDate)
    • getDescription

      public String getDescription()
    • setDescription

      public SecAttributes setDescription​(String description)
    • getComment

      public String getComment()
    • setComment

      public SecAttributes setComment​(String comment)
    • getCreator

      public long getCreator()
    • setCreator

      public SecAttributes setCreator​(long creator)
    • getType

      public long getType()
    • setType

      public SecAttributes setType​(long type)
    • getLabel

      public String getLabel()
    • setLabel

      public SecAttributes setLabel​(String label)
    • isInvisible

      public boolean isInvisible()
    • setIsInvisible

      public SecAttributes setIsInvisible​(boolean isInvisible)
    • isNegative

      public boolean isNegative()
    • setIsNegative

      public SecAttributes setIsNegative​(boolean isNegative)
    • getAccount

      public String getAccount()
    • setAccount

      public SecAttributes setAccount​(String account)
    • getService

      public String getService()
    • setService

      public SecAttributes setService​(String service)
    • getGeneric

      public NSData getGeneric()
    • setGeneric

      public SecAttributes setGeneric​(NSData generic)
    • getSecurityDomain

      public String getSecurityDomain()
    • setSecurityDomain

      public SecAttributes setSecurityDomain​(String securityDomain)
    • getServer

      public String getServer()
    • setServer

      public SecAttributes setServer​(String server)
    • getProtocol

      public SecAttrProtocol getProtocol()
    • setProtocol

      public SecAttributes setProtocol​(SecAttrProtocol protocol)
    • getAuthenticationType

      public SecAttrAuthenticationType getAuthenticationType()
    • setAuthenticationType

      public SecAttributes setAuthenticationType​(SecAttrAuthenticationType authenticationType)
    • getPort

      public int getPort()
    • setPort

      public SecAttributes setPort​(int port)
    • getPath

      public String getPath()
    • setPath

      public SecAttributes setPath​(String path)
    • getSubject

      public NSData getSubject()
    • setSubject

      public SecAttributes setSubject​(NSData subject)
    • getIssuer

      public NSData getIssuer()
    • setIssuer

      public SecAttributes setIssuer​(NSData issuer)
    • getSerialNumber

      public NSData getSerialNumber()
    • setSerialNumber

      public SecAttributes setSerialNumber​(NSData serialNumber)
    • getSubjectKeyID

      public NSData getSubjectKeyID()
    • setSubjectKeyID

      public SecAttributes setSubjectKeyID​(NSData subjectKeyID)
    • getPublicKeyHash

      public NSData getPublicKeyHash()
    • setPublicKeyHash

      public SecAttributes setPublicKeyHash​(NSData publicKeyHash)
    • getCertificateType

      public long getCertificateType()
    • setCertificateType

      public SecAttributes setCertificateType​(long certificateType)
    • getCertificateEncoding

      public long getCertificateEncoding()
    • setCertificateEncoding

      public SecAttributes setCertificateEncoding​(long certificateEncoding)
    • getKeyClass

      public SecAttrKeyClass getKeyClass()
    • setKeyClass

      public SecAttributes setKeyClass​(SecAttrKeyClass keyClass)
    • getApplicationLabel

      public String getApplicationLabel()
    • setApplicationLabel

      public SecAttributes setApplicationLabel​(String applicationLabel)
    • isPermanent

      public boolean isPermanent()
    • setIsPermanent

      public SecAttributes setIsPermanent​(boolean isPermanent)
    • getApplicationTag

      public NSData getApplicationTag()
    • setApplicationTag

      public SecAttributes setApplicationTag​(NSData applicationTag)
    • getKeyType

      public SecAttrKeyType getKeyType()
    • setKeyType

      public SecAttributes setKeyType​(SecAttrKeyType keyType)
    • getKeySizeInBits

      public long getKeySizeInBits()
    • setKeySizeInBits

      public SecAttributes setKeySizeInBits​(long keySizeInBits)
    • getEffectiveKeySize

      public int getEffectiveKeySize()
    • setEffectiveKeySize

      public SecAttributes setEffectiveKeySize​(int effectiveKeySize)
    • canEncrypt

      public boolean canEncrypt()
    • setCanEncrypt

      public SecAttributes setCanEncrypt​(boolean canEncrypt)
    • canDecrypt

      public boolean canDecrypt()
    • setCanDecrypt

      public SecAttributes setCanDecrypt​(boolean canDecrypt)
    • canDerive

      public boolean canDerive()
    • setCanDerive

      public SecAttributes setCanDerive​(boolean canDerive)
    • canSign

      public boolean canSign()
    • setCanSign

      public SecAttributes setCanSign​(boolean canSign)
    • canVerify

      public boolean canVerify()
    • setCanVerify

      public SecAttributes setCanVerify​(boolean canVerify)
    • canWrap

      public boolean canWrap()
    • setCanWrap

      public SecAttributes setCanWrap​(boolean canWrap)
    • canUnwrap

      public boolean canUnwrap()
    • setCanUnwrap

      public SecAttributes setCanUnwrap​(boolean canUnwrap)
    • getItemList

      @Deprecated public List<CFType> getItemList()
      Deprecated.
      Deprecated in iOS 12.0. Not implemented on this platform
    • setItemList

      @Deprecated public SecAttributes setItemList​(List<CFType> itemList)
      Deprecated.
      Deprecated in iOS 12.0. Not implemented on this platform
    • getOperationPrompt

      @Deprecated public String getOperationPrompt()
      Deprecated.
      Deprecated in iOS 14.0. Use kSecUseAuthenticationContext and set LAContext.localizedReason property
    • setOperationPrompt

      @Deprecated public SecAttributes setOperationPrompt​(String operationPrompt)
      Deprecated.
      Deprecated in iOS 14.0. Use kSecUseAuthenticationContext and set LAContext.localizedReason property
    • usesNoAuthenticationUI

      @Deprecated public boolean usesNoAuthenticationUI()
      Deprecated.
      Deprecated in iOS 9.0. Use kSecUseAuthenticationUI instead.
    • setUsesNoAuthenticationUI

      @Deprecated public SecAttributes setUsesNoAuthenticationUI​(boolean usesNoAuthenticationUI)
      Deprecated.
      Deprecated in iOS 9.0. Use kSecUseAuthenticationUI instead.
    • usesAuthenticationUI

      public boolean usesAuthenticationUI()
      Since:
      Available in iOS 9.0 and later.
    • setUsesAuthenticationUI

      public SecAttributes setUsesAuthenticationUI​(boolean usesAuthenticationUI)
      Since:
      Available in iOS 9.0 and later.
    • getUseAuthenticationContext

      public LAContext getUseAuthenticationContext()
      Since:
      Available in iOS 9.0 and later.
    • setUseAuthenticationContext

      public SecAttributes setUseAuthenticationContext​(LAContext useAuthenticationContext)
      Since:
      Available in iOS 9.0 and later.