单项选择题

下列方法中,用于设置Cookie的安全属性的是()

A.setSecure(Boolean flag)
B.setComment(String purpose)
C.setVersion(int v)
D.setDomain(String pattern)