// Path: fidoclient/src/main/java/com/yalin/fidoclient/constants/Constants.java
// public interface Constants {
//     String ACTION_FIDO_OPERATION = "org.fidoalliance.intent.FIDO_OPERATION";
// 
//     String PERMISSION_FIDO_CLIENT = "org.fidoalliance.uaf.permissions.FIDO_CLIENT";
// 
//     String FIDO_CLIENT_INTENT_MIME = "application/fido.uaf_client+json";
//     String FIDO_ASM_INTENT_MIME = "application/fido.uaf_asm+json";
// 
//     int CHALLENGE_MAX_LEN = 64;
//     int CHALLENGE_MIN_LEN = 8;
// 
//     int USERNAME_MAX_LEN = 128;
// 
//     int APP_ID_MAX_LEN = 512;
// 
//     int SERVER_DATA_MAX_LEN = 1536;
// 
//     int KEY_ID_MAX_LEN = 2048;
//     int KEY_ID_MIN_LEN = 32;
// 
//     String APP_ID_PREFIX = "https://";
// 
//     String BASE64_REGULAR = "^[a-zA-Z0-9-_]+={0,2}$";
// }


import android.content.Intent;
import android.os.Bundle;
import com.yalin.fidoclient.constants.Constants;
/*
 * Copyright 2016 YaLin Jin
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.yalin.fidoclient.asm.api;



/**
 * Created by YaLin on 2016/1/13.
 */
public class ASMIntent {
    public static final String MESSAGE_KEY = "message";

    public static Intent getASMIntent(){
        Intent intent = new Intent(Constants.ACTION_FIDO_OPERATION);
        intent.setType(Constants.FIDO_ASM_INTENT_MIME);

        return intent;
    }

// Path: fidoclient/src/main/java/com/yalin/fidoclient/constants/Constants.java
// public interface Constants {
//     String ACTION_FIDO_OPERATION = "org.fidoalliance.intent.FIDO_OPERATION";
// 
//     String PERMISSION_FIDO_CLIENT = "org.fidoalliance.uaf.permissions.FIDO_CLIENT";
// 
//     String FIDO_CLIENT_INTENT_MIME = "application/fido.uaf_client+json";
//     String FIDO_ASM_INTENT_MIME = "application/fido.uaf_asm+json";
// 
//     int CHALLENGE_MAX_LEN = 64;
//     int CHALLENGE_MIN_LEN = 8;
// 
//     int USERNAME_MAX_LEN = 128;
// 
//     int APP_ID_MAX_LEN = 512;
// 
//     int SERVER_DATA_MAX_LEN = 1536;
// 
//     int KEY_ID_MAX_LEN = 2048;
//     int KEY_ID_MIN_LEN = 32;
// 
//     String APP_ID_PREFIX = "https://";
// 
//     String BASE64_REGULAR = "^[a-zA-Z0-9-_]+={0,2}$";
// }


// Path: fidoclient/src/main/java/com/yalin/fidoclient/asm/api/ASMIntent.java
import android.content.Intent;
import android.os.Bundle;
import com.yalin.fidoclient.constants.Constants;

/*
 * Copyright 2016 YaLin Jin
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.yalin.fidoclient.asm.api;



/**
 * Created by YaLin on 2016/1/13.
 */
public class ASMIntent {
    public static final String MESSAGE_KEY = "message";

    public static Intent getASMIntent(){
        Intent intent = new Intent(Constants.ACTION_FIDO_OPERATION);
        intent.setType(Constants.FIDO_ASM_INTENT_MIME);

        return intent;
    }

    public static Intent getASMOperationIntent(String asmRequest) {