This example demonstrates how a Java program can use set and get PKCS#11 inspired mandatory attributes: Sensitive, Extractable, Always Sensitive, Never Extractable.