1 /*
2  * Copyright 2013 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.example.android.basicandroidkeystore;
18 
19 /**
20  * Helper class, contains several constants used when encrypting/decrypting data on Android.
21  * This class should not be considered a complete list of the algorithms, keystore types,
22  * or signature types within the Android Platform, only the more common ones.
23  */
24 public class SecurityConstants {
25     public static final String KEYSTORE_PROVIDER_ANDROID_KEYSTORE = "AndroidKeyStore";
26 
27     public static final String TYPE_RSA = "RSA";
28     public static final String TYPE_DSA = "DSA";
29     public static final String TYPE_BKS = "BKS";
30 
31     public static final String SIGNATURE_SHA256withRSA = "SHA256withRSA";
32     public static final String SIGNATURE_SHA512withRSA = "SHA512withRSA";
33 }
34