![JAR search and dependency download from the Maven repository](/logo.png)
COSE.MessageTag Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package COSE;
/**
*
* @author jimsch
*/
public enum MessageTag {
Unknown(0),
Encrypt0(16),
Encrypt(96),
Sign1(18),
Sign(98),
MAC(97),
MAC0(17);
public final int value;
MessageTag(int i) {
value = i;
}
public static MessageTag FromInt(int i) throws CoseException {
for (MessageTag m : MessageTag.values()) {
if (i == m.value) return m;
}
throw new CoseException("Not a message tag number");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy